Video Screencast Help
Search Video Help Close Back
to help
Not able to make it to Vision this year? Get a sampling in the Best of Vision on Demand group.

Changing Path Within a file

Updated: 21 May 2010 | 4 comments
Gareth Mann's picture
0 0 Votes
Login to vote
This issue has been solved. See solution.

A while ago AngelD helped me out quite alot with producing a vb script to change the path within a txt file in my installation to change it to the installdir. Now, recently i've been trying to compile some more using the same .wsi, I simply change the files within it, and press the compile button but when i come to install, the path doesn't change. Quick compile is turned off and the original msi is deleted so it creates a fresh one.



Does anyone have a clue why this is?

I've tried on numerous attempts to compile the msi and it compiles fine but this vb script which changes the string doesn't work. If you need anymore info please feel free to ask. I'll be going at it for a while!



Many thanks,

Gareth

Discussion Filed Under:

Comments

EdT's picture
23
Jan
2009
0 Votes 0
Login to vote

Is the VBScript still in there? Does it still reference the correct references in the directory table? (Repeated edits can create additional directory table entries such as INSTALLDIR1, INSTALLDIR2, etc. You need to make sure that the coding in the VBScript is still correct for your updated WSI project.

If all is well with the script, is it still running in the right place? You could add in a line such as

msgbox "I'm running" and this message should pop up on the screen when the vbscript runs.

AngelD is off skiing at the moment, so you will have to either reference the previous thread or let us know in more detail what he gave you and what you are doing. Otherwise, I think he's back next week.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.

Gareth Mann's picture
25
Jan
2009
0 Votes 0
Login to vote

Hi EdT,

Thanks for the response. The VBscript is still there in an external file and it still points to it correctly within the Execute Immediate and Execute deferred MSI script.

When you saud additional table entries, where do you find where these are defined e.g. INSTALLDIR1, INSTALLDIR2 etc? It maybe that it's incremented from INSTALLDIR to INSTALLDIR1 or something. It's worth a look anyway.



Thanks,

Gareth

Gareth Mann's picture
25
Jan
2009
0 Votes 0
Login to vote

Sorted the problem. I manually changed the wsi file name rather than using 'file save as' and this much have broken a link somewhere.



Thanks for your help,

Gareth

EdT's picture
25
Jan
2009
0 Votes 0
Login to vote

For the record, INSTALLDIR, INSTALLDIR1, etc, are all references to Directory Table entries. However, as you have sorted your own problem, I will lock this thread.

If your issue has been solved, please use the "Mark as Solution" link on the most relevant thread.