Jul 16, 2011
08:10 AM
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run An entry here can autostart any app during a boot. But one needs admin privileges during install to write there. This may not work if a standard user account is used to logon after a reboot. I think, an app with "requireAdministrator" in manifest will not start after reboot for any user account. I've found out that in order to make this to work, I need to modify the manifest for the program exe file. In the manifest, I have to change the setting of "requestedExecutionLevel" from "requireAdministrator" to "asInvoker". Unfortunately, this change causes side effects to the program. Just adding a manifest with "asInvoker" will not be enough. "asInvoker" manifest will work fine when coupled with the above method. Even a standard user account will be able to launch the app after reboot. But if your app needs admin rights, this will not work. Unfortunately, this change causes side effects to the program. You may need to refactor code for UAC compliance. I do not think there are acceptable workarounds.
... View more
Jun 23, 2011
09:40 PM
Hi Alpesh, Thanks for your help. However, I remember that when I bought the certificate from VeriSign before, there was no such problem. This time, the certificate is bought from Thawte and the problem exists. Is it because the certificate created by VeriSign is better? Thank you. John
... View more
May 25, 2011
03:00 PM
I found out that on Vista, Win 7, and 2008 Server, it doesn't generate a PVK file. Instead, the private key is installed into the registry. Then I reissue the certificate from Thawte on my XP machine. Later Thawte sent me a link to download and install the actual certificate and two intermediate certificates. These certificates don't require to have a PVK file. I can still export the certificate to a PFX file and import the file on a different machine. Therefore, I think it's still ok to purchase a certificate on Vista, Win 7, or 2008 Server, and the certificate can still work fine without a PVK file. Anyway, thank you for reading my post and trying to help me.
... View more
Latest posts by JohnWu
Subject | Views | Posted |
---|---|---|
613 | Jul 15, 2011 03:07 PM | |
2144 | Jul 13, 2011 09:41 PM | |
536 | Jun 23, 2011 09:40 PM | |
2184 | Jun 22, 2011 10:06 PM | |
479 | May 25, 2011 03:00 PM | |
2981 | May 23, 2011 01:23 PM |
Activity Feed
- Posted Re: Autorun program when Windows boots up and UAC is on on InstallShield Forum. Jul 15, 2011 03:07 PM
- Posted Autorun program when Windows boots up and UAC is on on InstallShield Forum. Jul 13, 2011 09:41 PM
- Posted Re: How to show the common name from certificate on UAC on Vista on InstallShield Forum. Jun 23, 2011 09:40 PM
- Posted How to show the common name from certificate on UAC on Vista on InstallShield Forum. Jun 22, 2011 10:06 PM
- Posted Re: Questions about certificate bought from Thawte on InstallShield Forum. May 25, 2011 03:00 PM
- Posted Questions about certificate bought from Thawte on InstallShield Forum. May 23, 2011 01:23 PM