Page 1 of 1

A bug writing permanent registry values

Posted: Thu Jan 26, 2012 5:16 am
by garyk
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

Re: A bug writing permanent registry values

Posted: Fri Jan 27, 2012 12:31 pm
by giaviv
Hi,

Have you included the Include Script command in your main script file (A I'm assuming)?

Re: A bug writing permanent registry values

Posted: Sun Jan 29, 2012 7:24 am
by garyk
I have indeed included the script, but under an 'if' which equals FALSE so I am NOT executing the included code.
Regards
Gary

Re: A bug writing permanent registry values

Posted: Wed Feb 01, 2012 6:14 pm
by giaviv
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

Re: A bug writing permanent registry values

Posted: Thu Feb 02, 2012 2:10 am
by garyk
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