If you happen to know the answer, please let us know.
Basically, there are some strange problems if the app is launched right after installation. But it works fine if the app is triggered from the system Start menu. Initially I thought this is our app's problem. But some of our developers dug in and try to convince me that the Integrity Level is different between launching it right after installation and triggered from Start menu. But I'm not sure they are correct or not. So my question is, why they have different Integrity Level? And how to make it the same as normal cases. Thanks. ________________________________ From: little.forest <little.for...@ymail.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Mon, February 21, 2011 1:12:51 PM Subject: Re: [WiX-users] How to change the Windows Integrity level in Vista/Win7 when launching the application Thanks Rob for your reply. Honestly, I'm not sure when the custom action is scheduled because I took the example("How To: Run the Installed Application After Setup") from Wix.chm. Here's our code: <Property Id="WIXUI_EXITDIALOGOPTIONALCHECKBOXTEXT" Value="!(loc.LaunchAppString) $(var.ApplicationName)" /> <Property Id="WixShellExecTarget" Value="[INSTALLLOCATION]$(var.ExeFile)" /> <CustomAction Id="LaunchApplication" BinaryKey="WixCA" DllEntry="WixShellExec" Impersonate="no" /> <Publish Dialog="ExitDialog" Control="Finish" Event="DoAction" Value="LaunchApplication"> WIXUI_EXITDIALOGOPTIONALCHECKBOX = 1 and NOT Installed </Publish> As you can see, it's almost identical to the original example code in Wix.chm. Anyways, I also run the installer and checked the log. Here's some log: MSI (c) (B8:D4) [11:44:33:697]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (B8:D4) [11:44:33:697]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'. Action ended 11:44:33: ExecuteAction. Return value 1. MSI (c) (B8:D4) [11:44:33:697]: Doing action: ExitDialog Action 11:44:33: ExitDialog. Action start 11:44:33: ExitDialog. Action 11:44:33: ExitDialog. Dialog created MSI (c) (B8:DC) [11:44:35:785]: Doing action: LaunchApplication Action 11:44:35: LaunchApplication. Action start 11:44:35: LaunchApplication. MSI (c) (B8:EC) [11:44:35:787]: Invoking remote custom action. DLL: C:\Users\UserA\AppData\Local\Temp\MSI8A32.tmp, Entrypoint: WixShellExec Action ended 11:44:36: LaunchApplication. Return value 1. Action ended 11:44:36: ExitDialog. Return value 1. Action ended 11:44:36: INSTALL. Return value 1. MSI (c) (B8:D4) [11:44:36:124]: Destroying RemoteAPI object. MSI (c) (B8:48) [11:44:36:124]: Custom Action Manager thread ending. So the question now is: is there a way to launch the application by giving the same Integrity Level as we start it from the system Start menu? Thanks a lot. ________________________________ From: Rob Mensching <r...@robmensching.com> To: General discussion for Windows Installer XML toolset. <wix-users@lists.sourceforge.net> Sent: Sat, February 19, 2011 9:26:54 AM Subject: Re: [WiX-users] How to change the Windows Integrity level in Vista/Win7 when launching the application When is your custom action scheduled? On Fri, Feb 18, 2011 at 3:17 PM, little.forest <little.for...@ymail.com>wrote: > We found a problem in Vista/Win7: > If we launch the application from the installer for the fresh installation, > the > Integrity level is empty. The process is on the same level as > "explorer.exe". > If we start the application from Start menu after the installation, the > Integrity level is Medium(just like other applications). And the process is > under "explorer.exe". > > The question is, how to launch the application from installer to make it > have > "Medium" Integrity level. > > By the way, by using "Process Explorer" from SystemInternals and turning on > the > Integrity field, the Integrity level field will show up. > > The reason we ask this is because: we have a bug which seems related to > this > Integrity Level thing. If the app is started from the Start menu, things > are > fine. If the app is launched from the installer for the 1st time > installation, > some functionalities don't work. I tried to set the 'Impersonate' field to > be > 'no'. But it doesn't help. > > Here's our launch app code: > <Property Id="WixShellExecTarget" > Value="[INSTALLLOCATION]$(var.ExeFile)" /> > <CustomAction Id="LaunchApplication" > BinaryKey="WixCA" > DllEntry="WixShellExec" > Impersonate="no" > /> > > > Thanks in advance. > > > ------------------------------------------------------------------------------ > The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: > Pinpoint memory and threading errors before they happen. > Find and fix more than 250 security defects in the development cycle. > Locate bottlenecks in serial and parallel code that limit performance. > http://p.sf.net/sfu/intel-dev2devfeb > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- virtually, Rob Mensching - http://RobMensching.com LLC ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Index, Search & Analyze Logs and other IT data in Real-Time with Splunk Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. Free Software Download: http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users