Variable resolving question

Got a problem you cannot solve? Try here.
ckaware
Posts: 125
Joined: Thu Mar 17, 2011 11:43 am

Variable resolving question

Postby ckaware » Fri Jan 13, 2012 12:43 pm

I have Compiler Variables ISGUIID1, ISGUIID2, and ISGUIID3 which stores the legacy InstallShield GUIIDs for removal.
I'm writing a script which essentially will go through my ISGUIID list and uninstall each package according to GUIID so I tried something like:

ISGUIID=#ISGUIID$ISCOUNT$#
Then I message box $ISGUIID$ and it reads "#ISGUIID1#, #ISGUIID2#, etc. but it's not resolving to the actual compiler variable.

Is there a way around this :)?

Chris

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variable resolving question

Postby giaviv » Fri Jan 13, 2012 3:33 pm

Hi,

How are you creating these variables?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ckaware
Posts: 125
Joined: Thu Mar 17, 2011 11:43 am

Re: Variable resolving question

Postby ckaware » Tue Jan 17, 2012 11:58 am

This idea is to set ISGUIID1,2,3 etc in the compiler variables section. In the IDE to resolve these variables you use #ISGUIID1#, 2 and 3...

This works, but my goal is to be able to loop until ISGUIID($COUNT$) doesn't exist and to do this I created a loop where I increment a variable say $COUNT$ by 1.

Some of our legacy products have multiple :-/ Legacy InstallShield GUIID references, I'm trying to minimize the install script for pre-install cleanup...

Something like checkInstallShield.mia goes through the compilervar list of ISGUIID (set per project) and uninstalls ALL ISGUIID's found...

And I was hoping #ISGUIID$COUNT$# would resolve compiler variables correctly :).

If I message box it, the $COUNT$ is resolved, but the value set in Compiler Var for ISGUIID($COUNT$) is not...

Chris

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variable resolving question

Postby giaviv » Tue Jan 17, 2012 7:29 pm

Hi,

I am afraid that is not possible with MSIcode.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE

ckaware
Posts: 125
Joined: Thu Mar 17, 2011 11:43 am

Re: Variable resolving question

Postby ckaware » Fri Jan 20, 2012 5:59 am

Thanks

giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Variable resolving question

Postby giaviv » Mon Jan 30, 2012 12:07 am

Clarification - compiler variables are burned-in at build time; so you cannot do runtime things with them - you have to assume they will all be literal values at runtime.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 54 guests