c# - Open application after install not working on install for "everyone" -


i'm using setup project, i've created installer class:

using system; using system.componentmodel; using system.runtime.remoting.contexts;  namespace client.common {     [runinstaller(true)]     public class installer : system.configuration.install.installer     {         public installer()         {          }          public override void commit(system.collections.idictionary savedstate)         {             try             {                 base.commit(savedstate);                    system.diagnostics.process.start(context.parameters["targetdir"] + "client.ui.exe");                  base.dispose();             }             catch (exception ex)             {              }         }     } } 

and setting customactiondata of commit custom action to:

/targetdir="[targetdir]\" 

this works fine when run msi install "just me", opens exe, when install "everyone" not run exe.

am missing enable happen "everyone" well?

when install me, custom actions run credentials of installing user, current interactive logged on user, that's running app explorer or shortcut.

when run custom action in install runs credentials of local system account. can result in number of potential issues or crashes. example, system account not allowed show ui interactive user's desktop security reasons; if try access user profile locations (desktop, user's data folder etc) might crash because system account doesn't have these; system account has no network privileges using network cause issues. without knowing code tries there's no way of these issue.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -