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
- :
- getting parameters from setup.ini
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
03:18 AM
getting parameters from setup.ini
Hi,
I solved my problem to install a fresh copy of my product.
I changed the code in OnMaintUIBefore() and OnMaintUIAfter().
then I used XCopyFile instead of features and components and it works well.
Now I wish I could use the same installer getting parameters from an .INI file.
I tried to do it changing the ProductCode and the PackageCode but it still seems like they are written inside the MSI package and the setup tells me that the product is already installed even I changed those codes in setup.ini.
So I still don’t know how to change create an general setup for my products. Is there a way to do it? What else I should do?
Best regards,
Davide
I solved my problem to install a fresh copy of my product.
I changed the code in OnMaintUIBefore() and OnMaintUIAfter().
then I used XCopyFile instead of features and components and it works well.
Now I wish I could use the same installer getting parameters from an .INI file.
I tried to do it changing the ProductCode and the PackageCode but it still seems like they are written inside the MSI package and the setup tells me that the product is already installed even I changed those codes in setup.ini.
So I still don’t know how to change create an general setup for my products. Is there a way to do it? What else I should do?
Best regards,
Davide
(2) Replies
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2008
08:23 AM
The MSI package indeed does contain a PackageCode and ProductCode. In order to create a generic installation more to what you're doing, I would suggest migrating to the pure InstallScript project type rather than InstallScript MSI.
If you're XCOPYing files, you'll probably find this more to your liking and you will be able to create the generic installations you want.
If you're XCOPYing files, you'll probably find this more to your liking and you will be able to create the generic installations you want.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 29, 2008
08:34 AM
and with the following function?
MsiGetProperty (hMSI, "ProductCode", svName, nvSize);
thank u in advance,
Davide
MsiGetProperty (hMSI, "ProductCode", svName, nvSize);
thank u in advance,
Davide
![](/skins/images/8C9D13A71C7F7695F3262372C0172D68/responsive_peak/images/icon_anonymous_message.png)