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

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

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?
Answered 12/01/2010 by: VBScab
Red Belt

Please log in to comment
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,
Answered 12/01/2010 by: gac_msil
Yellow Belt

Please log in to comment
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.
Answered 12/01/2010 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
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,
Answered 12/01/2010 by: gac_msil
Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity