问题
I have InstallShield 2013 Basic MSI project Is there an automatic way using a tool or script to automatically update all component code in the project ?
回答1:
First question: why do you want to do that? A component GUID is set in stone for all absolute paths it references. See a description of this here: Change my component GUID in wix?
If you are familiar with COM automation, you should be able to automate the generation of new GUIDs in your project using the Installshield automation interface.
There are only a few cases where such an operation is logical and valid. If you are looking to install the same product many times, you can check out instance transforms. I have no real experience with this - I dislike the concept, but here are some pointers:
- Installing Multiple Instances with Instance Transforms
- Authoring Multiple Instances with Instance Transforms
- Configuring and Building a Release that Includes Multiple-Instance Support
- Multiple Instances Tab for a Product Configuration
来源:https://stackoverflow.com/questions/22962090/automatic-way-to-update-component-code-in-installshield-basic-msi-project