Go Back   PackageDeploy Application Packaging Forums > Package Development > Application Packaging > Windows MSI

Reply
 
LinkBack Thread Tools Display Modes
Old 03-15-2010, 06:54 PM   #1 (permalink)
Wilson, Phil
Guest
 
Posts: n/a
Default Re: Custom Action to Restart an App.

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!!


  Reply With Quote
Old 03-15-2010, 06:54 PM   #2 (permalink)
Fyodor Koryazhkin
Guest
 
Posts: n/a
Default Re: Custom Action to Restart an App.

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.


  Reply With Quote
Old 03-15-2010, 06:54 PM   #3 (permalink)
Superfreak3
Guest
 
Posts: n/a
Default Custom Action to Restart an App.

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!!
  Reply With Quote
Old 04-04-2010, 04:02 AM   #4 (permalink)
hixxxej
Guest
 
Posts: n/a
Default Re: Custom Action to Restart an App.

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!!


  Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:58 AM.


vBulletin, Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
2007 - 2012 PackageDeploy.com