Dup MSI Change Component GUIDs
Hi All,
Say you have an MSI that deploys an application for you PROD environment to C:\PROD and then want to use that same MSI to install into a different directory for your UAT environment such as C:\UAT.
If you duplicate this MSI all the component GUIDs will be the same which is what you want for the shared files in directories such as windows but for all the files under C:\UAT you want different component GUIDs.
Within Wise is there an automated way of changing the component GUIDs?
Cheers,
Say you have an MSI that deploys an application for you PROD environment to C:\PROD and then want to use that same MSI to install into a different directory for your UAT environment such as C:\UAT.
If you duplicate this MSI all the component GUIDs will be the same which is what you want for the shared files in directories such as windows but for all the files under C:\UAT you want different component GUIDs.
Within Wise is there an automated way of changing the component GUIDs?
Cheers,
0 Comments
[ + ] Show comments
Answers (4)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
gac_msil
14 years ago
VbScab,
Please reread my original post.
I have duplicated the PROD msi and changed the INSTALLDIR to UAT. Now when you compare the components table of these 2 msi's the component guids are all the same.
If the component guids are the same but the components are installing to different directories then you are going to have problems with uninstalling.
What is the easiest way to change the component guids for all components who's directory is INSTALLDIR or a sub directory of INSTALLDIR.
Cheers,
Please reread my original post.
I have duplicated the PROD msi and changed the INSTALLDIR to UAT. Now when you compare the components table of these 2 msi's the component guids are all the same.
If the component guids are the same but the components are installing to different directories then you are going to have problems with uninstalling.
What is the easiest way to change the component guids for all components who's directory is INSTALLDIR or a sub directory of INSTALLDIR.
Cheers,
Posted by:
jmcfadyen
14 years ago
you can change the component guids easily with wise macros.
I am quite sure there is a setComponentGuid method available. If I had wise I would whip one up for you but I dont.
something like this should suffice.
set tblComponent = WTables("Component")
for each rowComponent in tblComponent.Rows
rowComponent("ComponentId") = setComponentGuid() ' use the correct method in wise function list
next
note: this is untested but you should get the idea from that.
I am quite sure there is a setComponentGuid method available. If I had wise I would whip one up for you but I dont.
something like this should suffice.
set tblComponent = WTables("Component")
for each rowComponent in tblComponent.Rows
rowComponent("ComponentId") = setComponentGuid() ' use the correct method in wise function list
next
note: this is untested but you should get the idea from that.
Posted by:
gac_msil
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.