/build/static/layout/Breadcrumb_cap_w.png

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,

0 Comments   [ + ] Show comments

Answers (4)

Posted by: anonymous_9363 14 years ago
Red Belt
0
Why not simply create a property called, say, ENVIRONMENT and use that to conditionally set INSTALLDIR or any feature/component which differs between the environments?
Posted by: gac_msil 14 years ago
Yellow Belt
0
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,
Posted by: jmcfadyen 14 years ago
5th Degree Black Belt
0
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.
Posted by: gac_msil 14 years ago
Yellow Belt
0
Thanks jmcfadyen, I've had already made a vbscript where I can define a list of directories of the components which I want to change the guids for, but I was wondering how others handle this from within Wise and if there was a function within Wise. I will look into Wise macros.

Cheers,
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ