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: How to create directory with name = ProductCode.
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
‎Feb 12, 2008
03:37 AM
How to create directory with name = ProductCode.
I want to copy one of my components to directory with name = [ProductCode].
But i didn't find any way to create such folder.
Script is not acceptable, because it fails at Vista.
How to do this using standard InstallShield features?
Does anybody know answer to this question?
But i didn't find any way to create such folder.
Script is not acceptable, because it fails at Vista.
How to do this using standard InstallShield features?
Does anybody know answer to this question?
(7) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
03:54 AM
If we are talking MSI project then its relatively straight forward.
-Set up a directory with a 'dummy' name
-Create a set directory custom action and set the value to be [ProductCode]
-Sequence it in the InstallExec sequence just after costfinalize for immediate execution.
During runtime your dummy directory name will actually be the product code. Please note, the set directory action is not a script, it's built in functionality of IS
-Set up a directory with a 'dummy' name
-Create a set directory custom action and set the value to be [ProductCode]
-Sequence it in the InstallExec sequence just after costfinalize for immediate execution.
During runtime your dummy directory name will actually be the product code. Please note, the set directory action is not a script, it's built in functionality of IS
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
07:02 AM
Thanks for reply.
I use Basic MSI.
I already tried those steps. After click at install button i get following error "Error 1606. Could not access to network location {productCode}".
Any ideas?
I use Basic MSI.
I already tried those steps. After click at install button i get following error "Error 1606. Could not access to network location {productCode}".
Any ideas?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
07:33 AM
Uncompressed source?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
08:17 AM
Compressed Network Image without Setup.exe (Single MSI).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
09:25 AM
When you create your dummy directory, what are you using as its "starting point"? Is it based off of TARGETDIR, INSTALLDIR, one of the pre-defined folders?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
10:09 AM
I want for my component to install in c:\program files\A\B
Where B = [ProductCode]
Records from my Directory table.
Directory Directory Parent Default Directory
INSTALLDIR NEW_DIRECTORY2 .
NEW_DIRECTORY2 ProgramFilesFolder A
B INSTALLDIR B
I created "Set a directory" custom action which set B = [ProductCode].
During install i get error already described above.
Where B = [ProductCode]
Records from my Directory table.
Directory Directory Parent Default Directory
INSTALLDIR NEW_DIRECTORY2 .
NEW_DIRECTORY2 ProgramFilesFolder A
B INSTALLDIR B
I created "Set a directory" custom action which set B = [ProductCode].
During install i get error already described above.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 12, 2008
01:57 PM
I've used Properties as directories plenty of times in Basic MSI...
I create the folder in the 'Files and folders' task pane and use []'s around the property. For example:
Program Files\My Application\[ProductCode]
Note that the property is case sensitive (in case you didn't realize)
I create the folder in the 'Files and folders' task pane and use []'s around the property. For example:
Program Files\My Application\[ProductCode]
Note that the property is case sensitive (in case you didn't realize)
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)