Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: jans on June 15, 2009, 10:27:41 PM

Title: Changing DefaultDirName
Post by: jans on June 15, 2009, 10:27:41 PM
When changing DefaultDirName changes occur in the in the script in the [Setup] section of the DefaultDirName=,
 
When rerunning Inno Setup with this change this wil only take effect when in the [Setup] section is added:
UsePreviousAppDir=no  
 
Maybe something to add in InnoScript?
Title: Changing DefaultDirName
Post by: Randem on June 15, 2009, 11:20:12 PM
That is only the case when you are installing over a previous installation. For a new installation that is OK.
 
If you want to add UsePreviousAppDir into the script just add it into a template under the section [Setup] and include it in your project. It will automatically be include on the next gerneration of the script.
Title: Changing DefaultDirName
Post by: jans on June 17, 2009, 11:03:49 PM
Thanks,
I added it in the template and it was included at the end of the [Setup] section. Need it to be before the DefaultDirName= or is order not important here?
Title: Changing DefaultDirName
Post by: Randem on June 17, 2009, 11:06:34 PM
No, order is not important. The compiler will look for what it needs. The sections do not have to be order either.