|
|
#1 (permalink) |
|
Guest
Posts: n/a
|
I don't think that helps. The repair is initiated when you (for example) use
a shortcut, and it happens before your app even starts. Do you really need those HKCU registry items for a per-machine install? -- Phil Wilson The Definitive Guide to Windows Installer http://www.apress.com/book/view/1590592972 "Superfreak3" <mawa316@rcn.com> wrote in message news:f26b8e9f-ad61-427f-9aa7-1b1ad3bba439@a18g2000yqc.googlegroups.com... > Hi all, > > Our app requires an Admin to install, but when a Standard User > attempts to launch our app., Windows Installer repair is initiated to > write some HKCU keys, etc. > > What I need to do is, during this repair as a Standard User, kill the > app that was initiated to start the repair and restart it. > > First, I'm wondering if I'm going to be able to do this in User > Context and also, what is the best method for doing so (.dll, .exe, > etc.)? > > Any tips appreciated! > > Thanks in advance!! |
|
|
|
#2 (permalink) |
|
Guest
Posts: n/a
|
On 06-Mar-10 00:08, Superfreak3 wrote:
> Hi all, > > Our app requires an Admin to install, but when a Standard User > attempts to launch our app., Windows Installer repair is initiated to > write some HKCU keys, etc. > > What I need to do is, during this repair as a Standard User, kill the > app that was initiated to start the repair and restart it. > > First, I'm wondering if I'm going to be able to do this in User > Context and also, what is the best method for doing so (.dll, .exe, > etc.)? > > Any tips appreciated! > > Thanks in advance!! Hi, I guess it will be quite difficult to distinguish between regular maintenance mode and your case where the maintenance mode is initiated by msiexec service or application. Moreover killing application from outside is not a good practice since some user data may be lost. I think that you should revise the way your application is installed. You have several scenarios: 1. Your application is installed for all users: you should set property ALLUSERS=1 and administrator should logon and install application. 2. Your application is intended for particular user: the administrator should install application using runas command. Also if your application is intended for users that do not have administrative privileges do not write to HKLM registry hive and do not install to %programfiles% folder (or some system folders) - always install to user data folders. I presume that this way the application would not rise maintenance mode of your installation. |
|
|
|
#3 (permalink) |
|
Guest
Posts: n/a
|
Hi all,
Our app requires an Admin to install, but when a Standard User attempts to launch our app., Windows Installer repair is initiated to write some HKCU keys, etc. What I need to do is, during this repair as a Standard User, kill the app that was initiated to start the repair and restart it. First, I'm wondering if I'm going to be able to do this in User Context and also, what is the best method for doing so (.dll, .exe, etc.)? Any tips appreciated! Thanks in advance!! |
|
|
|
#4 (permalink) |
|
Guest
Posts: n/a
|
write it as HKEY_CURRENT_CONFIG
"Superfreak3" <mawa316@rcn.com> wrote in message news:f26b8e9f-ad61-427f-9aa7-1b1ad3bba439@a18g2000yqc.googlegroups.com... > Hi all, > > Our app requires an Admin to install, but when a Standard User > attempts to launch our app., Windows Installer repair is initiated to > write some HKCU keys, etc. > > What I need to do is, during this repair as a Standard User, kill the > app that was initiated to start the repair and restart it. > > First, I'm wondering if I'm going to be able to do this in User > Context and also, what is the best method for doing so (.dll, .exe, > etc.)? > > Any tips appreciated! > > Thanks in advance!! |
|