Randem Systems Support Board

InnoScript => InnoScript - General Questions, Report Bugs, Problems etc... => Topic started by: tarablue on July 09, 2007, 09:50:16 PM

Title: Fixed file folder
Post by: tarablue on July 09, 2007, 09:50:16 PM
Hello All,
 
InnoScript Ver. 7.0
In the PDW of VB6 you can fix the folder where your program will reside and not allow it to be changed, can this be done in InnoScript?
 
Tarablue
Title: Fixed file folder
Post by: Randem on July 09, 2007, 10:05:48 PM
Yes you can use this directive in the [Setup] Section.
 
[Setup]: DisableDirPage
 
Valid values:
 yes or no  
 
Default value:
 no  
 
Description:
 
If this is set to yes, Setup will not show the Select Destination Location wizard page. In this case, it will always use the default directory name.
Title: Fixed file folder
Post by: tarablue on July 09, 2007, 11:52:23 PM
Hello,
 
It took a while but I found where to put code.  Now how about the Start Menu Folder Name.  I tried;
 
[Setup]:DisableStartMenuFolderPage=yes
 
and variations on the wording without success.  Can this be stopped as well?
 
Tarablue}
 
(Message edited by Tarablue on July 09, 2007)
Title: Fixed file folder
Post by: Randem on July 10, 2007, 09:05:34 AM
Just add the one line statement goes in the [Setup] Section...
 
[Setup]
DisableStartMenuFolderPage=Yes
Title: Fixed file folder
Post by: tarablue on July 10, 2007, 05:27:33 PM
Hello,
 
Yes I tried that and it didn't work, but I had a think on it and it doesn't matter what name is used in the Start Up menu, it's the directory where the program sits that's important.  Changes here would make part of my program to not function.
 
Thank you anway.
Tarablue
Title: Fixed file folder
Post by: Randem on July 10, 2007, 08:24:31 PM
That would fix the folder and not allow it to be changed as asked. If you wanted to know how to set the folder location in the first place that is a different directive and it is  
 
[Setup]
DefaultDirName=your installation folder
 
 
Why didn't you use InnoScript to do all that for you?
Title: Fixed file folder
Post by: tarablue on July 10, 2007, 09:04:58 PM
Hello,
 
I did use InnoScript for this but when you run the compiled program the page that allows this to be changed still comes up.  The DisableDirPage=Yes stops it showing up, which is what I needed.
 
Thank You
Title: Fixed file folder
Post by: Randem on July 10, 2007, 09:07:57 PM
I gave you that directive in the second post...