This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- msi issues ocx file wont register
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 13, 2013
11:12 AM
msi issues ocx file wont register
Have a msi with a ocx file that wont register, when I install the msi i have to self register to make it work, or i have to launch the app , "run as admin" i can turn off the uac off ( Win 7 I am talking about) and it registers.. i have added reg files to automatically do this in my msi , but still wont register? Any ideas? :confused:
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Feb 13, 2013
03:05 PM
snapjudgement wrote:
Have a msi with a ocx file that wont register, when I install the msi i have to self register to make it work, or i have to launch the app , "run as admin" i can turn off the uac off ( Win 7 I am talking about) and it registers.. i have added reg files to automatically do this in my msi , but still wont register? Any ideas? :confused:
Answered my own question,,, if the app needs to run as admin to register the ocx?? which is strange ( instead of manualy regsvr32xxx.ocx) and its a msi that will be advertised to alot of users , and they dont need to be lauch it as admin to start:
just created a reg file added it to the msi:
1.Open the Registry Editor with Elevated Privileges, refer to "Opening the Registry Editor with Elevated Privileges"
2.Navigate to:
HKCR\regfile\shell
3.Create a new key by right-clicking "shell" to select New > Key. Name the new key RunAs.
4.Create a new key by right-clicking "RunAs" to select New > Key. Name the new key command.
5.Double-click (default)located at:
HKCR\regfile\shell\RunAs\command
6.Enter the following in the Value Data field:
regedit.exe "%1"