Showing results for 
Show  only  | Search instead for 
Did you mean: 
Level 5

getting parameters from setup.ini

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,
Labels (1)
0 Kudos
(2) Replies
Not applicable

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.
0 Kudos
Level 5

and with the following function?
MsiGetProperty (hMSI, "ProductCode", svName, nvSize);
thank u in advance,
0 Kudos