A bug writing permanent registry values

Got a problem you cannot solve? Try here.
garyk
Posts: 27
Joined: Fri Jan 23, 2009 7:16 pm

A bug writing permanent registry values

Postby garyk » Thu Jan 26, 2012 5:16 am

In my Installer I have 2 scripts (A and B), each with its own ApplyChanges.
B has a writeRegistry command for X which is marked as permanent and a writeRegistry command for Y which is NOT marked as permanent.
A does not have writeRegistry commands for X or Y.
My installer runs script A and DOES NOT run script B.
After installation, the registry does not contain Y (as expected) but IT DOES contain X although B was not executed.
I am using IA 2012.

Is there a workaround for this problem other than using an external command for writing to the registry?
Thanks
Gary

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

Re: A bug writing permanent registry values

Postby giaviv » Fri Jan 27, 2012 12:31 pm

Hi,

Have you included the Include Script command in your main script file (A I'm assuming)?
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

garyk
Posts: 27
Joined: Fri Jan 23, 2009 7:16 pm

Re: A bug writing permanent registry values

Postby garyk » Sun Jan 29, 2012 7:24 am

I have indeed included the script, but under an 'if' which equals FALSE so I am NOT executing the included code.
Regards
Gary

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

Re: A bug writing permanent registry values

Postby giaviv » Wed Feb 01, 2012 6:14 pm

Hi Gary,

I strongly recommend two things:
1) Making sure that no one else is creating Y or that it doesn't already exist
2) Running your setup step by step (debugging it) and seeing if any Write Registry commands are being called
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

garyk
Posts: 27
Joined: Fri Jan 23, 2009 7:16 pm

Re: A bug writing permanent registry values

Postby garyk » Thu Feb 02, 2012 2:10 am

Aviv
We have already done both things you command before ever posting this issue.
What I describe IS a bug I am sure.
However, as you are not convinced, I will try writing a minimal installer that will hopefully reproduce it and send you.
Regards
Gary


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 95 guests