This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Installscript multi instance directory name change
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2008
09:34 PM
Installscript multi instance directory name change
I have enabled multi instance for my installscript project. I would like to rename the install directory with the instance number appended to it. something like
Instance1 - Program Files\MyAPP
Instance 2 - Program Files\MyAPP2
Instance 3 - Program Files\MyAPP3
although I am not for sure how I can get the instance number being installed. Or how to rename the folder. The Folder MyAPP is a folder that holds all the files that I load into the project, it is not created by the installer.
Instance1 - Program Files\MyAPP
Instance 2 - Program Files\MyAPP2
Instance 3 - Program Files\MyAPP3
although I am not for sure how I can get the instance number being installed. Or how to rename the folder. The Folder MyAPP is a folder that holds all the files that I load into the project, it is not created by the installer.
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2008
10:08 PM
I use a Type 51 CA scheduled ( in both the install ui and execute sequences with Execute Only Once ) before CostFinalize.
I also like to use [ProgramFilesFolder]My Company\[ProductName] where ProductName is defined unqiue ( FOO, FOO-1, FOO-2 ) in the ISProductConfigurationInstance table.
http://community.acresso.com/showthread.php?t=179941
I also like to use [ProgramFilesFolder]My Company\[ProductName] where ProductName is defined unqiue ( FOO, FOO-1, FOO-2 ) in the ISProductConfigurationInstance table.
http://community.acresso.com/showthread.php?t=179941
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2008
07:59 AM
For an InstallScript project, you can check MULTI_INSTANCE_COUNT to see how many instances are already installed; the default OnSetTARGETDIR event handler puts together the TARGETDIR string for multi-instance installers, and you can modify the default implementation. (Same goes for OnCustomizeUninstInfo.)
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2008
08:03 AM
jchristman wrote:
for my installscript project
Dooh, sorry.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 30, 2008
09:21 AM
Thank you I will use the MULTI_INSTANCE_COUNT.
I do however use the TARGETDIR now and set like
TARGETDIR = Program Files\MYCOMPANY\
and it creates something like this
Program Files\MYCOMPANY\MYAPP
when I do TARGETDIR = Program Files\MyCOMPANY\MYAPP2
it creates Program Files\MyCOMPANY\MYAPP2\MYAPP
with my project I just include the MYAPP folder into the targetdir by draging it into the project and using the linking for all files and subdirectories. So I guess I want to make sure it is possible to rename this folder.
I do however use the TARGETDIR now and set like
TARGETDIR = Program Files\MYCOMPANY\
and it creates something like this
Program Files\MYCOMPANY\MYAPP
when I do TARGETDIR = Program Files\MyCOMPANY\MYAPP2
it creates Program Files\MyCOMPANY\MYAPP2\MYAPP
with my project I just include the MYAPP folder into the targetdir by draging it into the project and using the linking for all files and subdirectories. So I guess I want to make sure it is possible to rename this folder.