PDA

View Full Version : Serial Number in HKLM deleted when logged on as limited user



DigitalC2
01-22-2004, 02:50 PM
My application writes the serial number to the registry in HKLM\Software\CompanyName\AppName in a key called SerialNum. When I install as the admin, the serial number is written correctly. When I logon as a limited user (not admin), the serial number is still there. Then, as a limited user, when I launch my application I see a dialog that pops up and says "Preparing to install" and then "Please wait while Windows configures MyApplication". This deletes the value of the serial number in HKLM.

I thought this was a bug in InstallShield, but when I created a simple install that just displayed a form the serial number wasn't deleted (but I didn't see the dialogs that said preparing to install either).

My assumption is that this second install activity under the limited user is causing the problem but I don't know for sure. So here is a recap.

1. Install as admin (go through all the install steps and see the SW install). All is fine, serial number in HKLM.

2. Logon as limited user. All is fine serial number in HKLM.

3. Launch my application. SEE "Preparing to install" and "Please wait while Windows configures ...". The serial number has been DELETED from HKLM.

I have attached a screen shot that shows the "Please wait while Windows configures" that comes up as limited user.

Anyone have any ideas of how to get rid of this second install activity?

TsungH
01-22-2004, 02:55 PM
I would turn on MSI logging and analyze the log generated when restricted user launches the shortcut, in order to identify the cause.

DigitalC2
01-22-2004, 03:05 PM
Thanks for the replay, I appreciate any help I can get.

I went into the settings which has the option to enable msi log. I turned it on and did my test but couldn't find the log when I was done. I went into the help system for the MSI logging and found the following sentence...

"This dialog allows you to create a log file for use when you are running your setup within the IDE."

Since the second install message comes up as a limited user and the logging appears to only work within the IDE I don't know how to make this work.

Is there some other way to enable the logging so that I don't have to be in the IDE to see it?

TsungH
01-22-2004, 04:39 PM
There are numerous way to log an installation. For one, please take a look at Msiexec.exe Command Line Parameters in the Help. Alternatively, you can set Machine Policies (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/machine_policies.asp).

Microsoft has made Windows Installer Help (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/windows_installer_start_page.asp) available online. For product related questions, there is IS Knowledge Base (http://support.installshield.com/kb), as well as InstallShield HelpNet (http://documentation.installshield.com/).