Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: jans on June 15, 2009, 08:49:11 PM

Title: Source: ../ in script in stead of actual path
Post by: jans on June 15, 2009, 08:49:11 PM
When creating a script I get in the [Files] section:  Source: ..project1.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
instead of the actual path.  
 
InnoSetup does not find the file in this way.
 
In the Run Log the complete path is given.
What do I do wrong?
Title: Source: ../ in script in stead of actual path
Post by: Randem on June 15, 2009, 08:52:56 PM
Inno Setup will find it that way if the script was located in a sub folder of the project. If you want the actual path go to the parameters screen (Settings->Parameters) then deselect the button Use Relative Paths.
 
What is the folder tree look like for your project?
Title: Source: ../ in script in stead of actual path
Post by: jans on June 15, 2009, 09:34:31 PM
Thanks for your suggestion not using relative paths, that seems to work.
 
The script is located in the project folder:
c:Documents and SettingsJanMijn DocumentenVisualBasicGamesParticlesParticles01.pjt
 
Should I change this to be able to use relative paths?
Title: Source: ../ in script in stead of actual path
Post by: Randem on June 15, 2009, 09:46:26 PM
If your script was in c:\Documents and Settings\Jan\Mijn Documenten\VisualBasic\Games\Scripts\ you could use relative paths. In that way if you copied your project folder \Games to another location your script would still compile. If you were using exact paths it would not compile for it would be looking for files in the project in the wrong location.
Title: Source: ../ in script in stead of actual path
Post by: jans on June 15, 2009, 10:00:38 PM
Thanks again, it works OK with relative paths when the script is in the subdirectory