[WiX-users] How to detect whether MSI invokes by administrator or not?
I have an installer now, and want only Administrator can run it. My OS is Windows7 x64. I hope an error message can pop up if a non-admin user invoke it. So I add a launch condition. Privileged There are three types' users on my test machine: Type1: Domain User which is in Administrators group Type2: Local administrator Type3: Local user in Users group Type1 Type2 Type3 Expected: Run RunNot Run Now: Run Run Run So I add a value in Package node "InstallPrivileges="limited"", but get below results. Not Run Run Not Run It seems, domain administrators are not looked as an administrator by installer? How can I set condition to perform the expected behavior? Thanks. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-detect-whether-MSI-invokes-by-administrator-or-not-tp7331428p7331428.html Sent from the wix-users mailing list archive at Nabble.com. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Check running installer by Administrator or not
anyone knows this? Thanks. -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Check-running-installer-by-Administrator-or-not-tp7045540p7331421.html Sent from the wix-users mailing list archive at Nabble.com. -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Visual Studio 11 Support Timeline?
I know, Day 1 support of Visual Studio 11 is unlikely, improbable, or impossible but I wonder if anyone has a feel for the timeline involved in getting the new IDE supported? -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Windows Installer and Process Environment Block
I need to use CreateProcessAsUser() and pass the user token of the logged on user. Thanks. On Mon, Feb 27, 2012 at 7:48 PM, Wilson, Phil wrote: > I suspect a LoadUserProfile is done for the user in question. That's what > contains those kinds of paths etc. > > Phil W > > -Original Message- > From: Andy Clugston [mailto:clug...@gmail.com] > Sent: Wednesday, February 22, 2012 11:04 AM > To: General discussion for Windows Installer XML toolset. > Subject: [WiX-users] Windows Installer and Process Environment Block > > I am working on an installation sequencer. The heart of the sequencer is a > Windows system service that launches the install processes (typically > msiexec) as they come in. > > The sequencer service is grabbing the environment block of the logged on > user (this has been verified) and passing this block to CreateProcess(). In > addition, any variable expansion on the command is expanded based on the > currently logged on user. > > I see an issue where installation packages that target the user profile > paths (AppData, etc.) ends up in the systemprofile instead. If the > installation package is "run by hand" outside of the service, the files, > etc. end up where they are supposed to which is in the currently logged on > user's profile paths. > > How does Windows Installer determine the user profile / environment block > when msiexec is executed? It apparently is not inheriting > the environment from my sequencer service process, otherwise the profile > data would end up in the right spot. > > Thank you. > > -- > Virtualization & Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > > *** Confidentiality Notice: This e-mail, including any associated or > attached files, is intended solely for the individual or entity to which it > is addressed. This e-mail is confidential and may well also be legally > privileged. If you have received it in error, you are on notice of its > status. Please notify the sender immediately by reply e-mail and then > delete this message from your system. Please do not copy it or use it for > any purposes, or disclose its contents to any other person. This email > comes from a division of the Invensys Group, owned by Invensys plc, which > is a company registered in England and Wales with its registered office at > 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW (Registered number 166023). > For a list of European legal entities within the Invensys Group, please go > to http://www.invensys.com/en/legal/default.aspx. > > You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail > recept...@invensys.com. This e-mail and any attachments thereto may be > subject to the terms of any agreements between Invensys (and/or its > subsidiaries and affiliates) and the recipient (and/or its subsidiaries and > affiliates). > > > > > -- > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft developers > is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, > Metro Style Apps, more. Free future releases when you subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Concurrent Installations and Custom Actions
Sure. In a Repair, you'll have the property REINSTALL probably set to "All" (don't quote me on the casing). So, a test like REINSTALL ~= "All" (the tilde makes the test case insensitive) will help detect this mode. Because you're effectively doing it twice, you're going to have to duplicate the functionality of the REINSTALL property too. If patching is on your agenda too (I don't think your scenario will work for it), the REINSTALL property gets set to the one or more features that are having the patched applied. -- John M. Cooper -Original Message- From: ShitalKumar Mehta (Synergy Technologies LLC) [mailto:v-shm...@microsoft.com] Sent: Wednesday, February 29, 2012 1:24 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Concurrent Installations and Custom Actions Hello John, Thanks for the response. I have sequenced my custom installation dialogs as following. INSTALL: WelcomeDlg, SetupTypeDlg, UserRegistrationDlg, VerifyReadyDlg, EndDialog. INSTALL AGAIN: MaintenanceWelcomeDlg, CustomMaintenanceSetupTypeDlg, CustomUserRegDlg, EndDialog. Happy Trail: Install... One instance is installed. Reinstall. you have 3 options similar to and stolen from MaintenanceTypeDlg CHANGE... I install another application database, binaries. I am achieving this by putting conditional clause "INSTALLED AND (NOT REMOVE)" REMOVE... I uninstall All the applications completely. REPAIR... I want to simulate "REMOVE AN APP" but not completely UNINSTALL/UNREGISTER the product Everything is good. Only problem is REPAIR. My separate custom actions for REPAIR are not getting called, but the CHANGE custom actions are called every time. CHANGE: Installed AND (NOT REMOVE) Installed AND (NOT REMOVE) REPAIR SIMULATING "REMOVE AN APP": REPAIR NOTE: REPAIR To me it looks like the conditional terminology I am using for CHANGE AND REPAIR isn't correct and once I get a hint, I would be like "Oh really". Would you have that hint for me please? Thanks, Shital Mehta IT Developer -Original Message- From: John Cooper [mailto:jocoo...@jackhenry.com] Sent: Monday, February 27, 2012 11:18 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Concurrent Installations and Custom Actions You'd be way better off using a chainer. That being said, you're probably going to have to conditional the second install on the install states of a feature(s) or component(s) and create your own "Installed_Second" property to effectively mimic the behavior of "Installed." You're going to hate yourself though when you try to update or patch things. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -Original Message- From: ShitalKumar Mehta (Synergy Technologies LLC) [mailto:v-shm...@microsoft.com] Sent: Monday, February 27, 2012 1:08 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Concurrent Installations and Custom Actions Contrary to norm, I have implemented a concurrent installation scenario where one second install, user will go through my custom install dialogs. One last leg, I present them with "Install" button, which simulates what "VerifyReadyDlg" dialog's custom install option would do. NOT Installed AND ALLUSERS NOT Installed NOT Installed OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST) OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D" OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D" (OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F") This works fine, what works backwards for me now is that my CUSTOM ACTIONS for INSTALL don't work on 2nd Install, because they are coded to run when "NOT Installed". Also my Custom Actions for UNINSTALL only are now running on 2nd install onwards because they are coded to run when product is "INSTALLED". Here is how I have put logic to run custom actions. Any pointer to tweak this final thing would be greatly appreciated. What would do the trick for me would be to a pointer that would tell me, if there is alternate terminology for following two: NOT Installed --This should run every time except on UNINSTALL through /X cmdline or Add Remove Program's 'Remove' option. NOT Installed Installed -- Here is where I want the Uninstall to work only when someone is explicitly uninstalling using /X or Add Remove programs "Remove" option. Thanks, Shit
Re: [WiX-users] Concurrent Installations and Custom Actions
Hello John, Thanks for the response. I have sequenced my custom installation dialogs as following. INSTALL: WelcomeDlg, SetupTypeDlg, UserRegistrationDlg, VerifyReadyDlg, EndDialog. INSTALL AGAIN: MaintenanceWelcomeDlg, CustomMaintenanceSetupTypeDlg, CustomUserRegDlg, EndDialog. Happy Trail: Install... One instance is installed. Reinstall. you have 3 options similar to and stolen from MaintenanceTypeDlg CHANGE... I install another application database, binaries. I am achieving this by putting conditional clause "INSTALLED AND (NOT REMOVE)" REMOVE... I uninstall All the applications completely. REPAIR... I want to simulate "REMOVE AN APP" but not completely UNINSTALL/UNREGISTER the product Everything is good. Only problem is REPAIR. My separate custom actions for REPAIR are not getting called, but the CHANGE custom actions are called every time. CHANGE: Installed AND (NOT REMOVE) Installed AND (NOT REMOVE) REPAIR SIMULATING "REMOVE AN APP": REPAIR NOTE: REPAIR To me it looks like the conditional terminology I am using for CHANGE AND REPAIR isn't correct and once I get a hint, I would be like "Oh really". Would you have that hint for me please? Thanks, Shital Mehta IT Developer -Original Message- From: John Cooper [mailto:jocoo...@jackhenry.com] Sent: Monday, February 27, 2012 11:18 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Concurrent Installations and Custom Actions You'd be way better off using a chainer. That being said, you're probably going to have to conditional the second install on the install states of a feature(s) or component(s) and create your own "Installed_Second" property to effectively mimic the behavior of "Installed." You're going to hate yourself though when you try to update or patch things. -- John Merryweather Cooper Build & Install Engineer - ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -Original Message- From: ShitalKumar Mehta (Synergy Technologies LLC) [mailto:v-shm...@microsoft.com] Sent: Monday, February 27, 2012 1:08 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Concurrent Installations and Custom Actions Contrary to norm, I have implemented a concurrent installation scenario where one second install, user will go through my custom install dialogs. One last leg, I present them with "Install" button, which simulates what "VerifyReadyDlg" dialog's custom install option would do. NOT Installed AND ALLUSERS NOT Installed NOT Installed OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND (PROMPTROLLBACKCOST="P" OR NOT PROMPTROLLBACKCOST) OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D" OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 0 AND PROMPTROLLBACKCOST="D" (OutOfDiskSpace = 1 AND OutOfNoRbDiskSpace = 1) OR (OutOfDiskSpace = 1 AND PROMPTROLLBACKCOST="F") This works fine, what works backwards for me now is that my CUSTOM ACTIONS for INSTALL don't work on 2nd Install, because they are coded to run when "NOT Installed". Also my Custom Actions for UNINSTALL only are now running on 2nd install onwards because they are coded to run when product is "INSTALLED". Here is how I have put logic to run custom actions. Any pointer to tweak this final thing would be greatly appreciated. What would do the trick for me would be to a pointer that would tell me, if there is alternate terminology for following two: NOT Installed --This should run every time except on UNINSTALL through /X cmdline or Add Remove Program's 'Remove' option. NOT Installed Installed -- Here is where I want the Uninstall to work only when someone is explicitly uninstalling using /X or Add Remove programs "Remove" option. Thanks, Shital Mehta IT Developer -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized
[WiX-users] Get MSI logs when Burn chain failed
Hi, I have a burn chainer which installs an MSI. If the MSI fails (error 1603), I only get said error code in the burn log (msi failed with error 0x80070643). That's not very helpful because 1603 is kind of a standard error message. Is it possible to get a verbose MSI log from the package? Can the LogPathVariable property of the MsiPackage be used for this? Kind regards, Henning -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Are compiler extensions available for Light as they are for candle?
Rob, Are build architecture provides the ability to have multiple paths defined at build time which normally only occur when a team branch is used off of a product line. Those paths are set within an Environment Variable where the team branch path is first and then a Systest / Parent build path is next. Because of that a compiler extension was created to handle multiple paths so when a wxs file is processed via Candle the path to the file is set to the correct absolute path. This currently requires that whatever files use this extension be rebuilt whenever a developer wishes to build installs locally. The reason for the question is our build architecture is about to greatly change where all the wxs files will need to use this method compared to just one right now. We are looking to modify 10's of thousands of files and are trying to deduce a method where all the wxs files do not need to be rebuilt EVERY time on a local machine but rather have the paths set during light since that is truly the only point in which the specific paths matter. Does it sound like the BinderFileManager could take over what our Compiler Extension is currently doing? Thanks, Jon W. McCain | Software Engineer - Install -Original Message- From: Rob Mensching [mailto:r...@robmensching.com] Sent: Wednesday, February 29, 2012 12:39 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Are compiler extensions available for Light as they are for candle? What exactly are you doing? This sounds a lot like you want a BinderFileManager (which is an extension point provided in Light). On Tue, Feb 28, 2012 at 8:39 AM, McCain, Jon wrote: > We currently have an extension in place to handle relative path > conversion to absolute paths for Source File Paths in a candle compiler > extension. > > >From a cursory look over the Googles... and other sites I don't see > >that > as an option for light but I did notice that an -ext flag is available > for light. > > Has anyone done this with success and could they comment on a pattern > to follow or specification to use? > > Thanks, > Jon W. McCain | Software Engineer - Install > > > -- > Keep Your Developer Skills Current with LearnDevNow! > The most comprehensive online learning library for Microsoft > developers is just $99.99! Visual Studio, SharePoint, SQL - plus > HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you > subscribe now! > http://p.sf.net/sfu/learndevnow-d2d > ___ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- virtually, Rob Mensching - http://RobMensching.com LLC -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Getting custom installation directory path during uninstall
Hi, How to get installed directory path during uninstall, if the product was installed in non-default location. For example,instead of installing in C:\Program Files\, user might install in E:\... In that case I want to get that path so that I can execute my custom actions to do the cleanup. Right now I am getting the default install path only when I access INSTALLDIR property. Thanks, Sainath -- Virtualization & Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users