[WiX-users] running uninstallation as administrator

2011-02-22 Thread MYFLEX
Hi all, our installer will run the different custom actions at the time of uninstallation. these custom actions needs the administrator previleges. how to run my uninstallation "as administrator" from the Add Or Remove Programs panel. if I run the uninstallation with the EXE(run as administrator)

Re: [WiX-users] Disallowing uninstallation of patch

2011-02-22 Thread Tom Crozier
I still need help. The 1st patch is created by using msimsp between the RTM and patched version is around 35MB and contains the new components and UI sequence items I added and works as expected. The second patch is created by using the same procedure diffing the 2nd patched version (which i

Re: [WiX-users] Trigger custom action on NEWERFOUND

2011-02-22 Thread Andy Clugston
I believe I found a way to accomplish this. Using the OnExit=error as well as some other properties I already had setup seems to be working. On Tue, Feb 22, 2011 at 3:38 PM, Andy Clugston wrote: > All, > > I currently have the "prevent downgrade custom action" below... > > After='FindRelatedPro

Re: [WiX-users] How to change the Windows Integrity level in Vista/Win7 when launching the application

2011-02-22 Thread little.forest
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

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Jeff Wisgo
I am working on a upgrade scenario and have to get rid of a process from one of many possible old versions. Killing the process is the only way to make sure the upgrade succeeds cleanly, as there are no hooks in the legacy code for a clean shutdown. There *has* to be some way to force the MSI to r

[WiX-users] Trigger custom action on NEWERFOUND

2011-02-22 Thread Andy Clugston
All, I currently have the "prevent downgrade custom action" below... NEWERFOUND One thing that I am tasked to support is updating of a product at runtime. So, shutting down the app(s), invoking msiexec, and starting them back up. The "starting them back up" is handled by custom actions in the M

Re: [WiX-users] State of WiX 3.6 - Burn?

2011-02-22 Thread John Robbins
Hi Chris, Funny you should ask. :) I am in the middle of working on a Burn-based boot strapper as I type. I hacked together a prototype and was able to a C# Windows Form UI working for install, repair, and remove. The biggest hurdle is that the only documentation is the WiX 3.6 EXE installer. H

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Wilson, Phil
Exactly - the MSI team apparently uses the least privilege rule, which is why it runs without a bunch of privileges that are considered non-essential to an install. What is special about this process that you have to go into it and kill it? Is there really no other way to get it to go away?

Re: [WiX-users] Disallowing uninstallation of patch

2011-02-22 Thread Tom Crozier
One more piece of information. When I run the second patch I get the following message for each component (1 per file) for each of the files that were added in the first patch and are still part of the second patch. Patch Supersedence: Component 'CompPatchedContentDir' is added by a superseded

[WiX-users] State of WiX 3.6 - Burn?

2011-02-22 Thread Christopher Painter
I haven't really been following the status of the weekly builds so I was hoping someone could give me an honest assessment of the current state of Burn. If I had an MSI that needed to bootstrap Windows Installer 4.5 and .NET Framework 3.5sp1 then run 1 single MSI,  is v3.6 currently stable enoug

Re: [WiX-users] Disallowing uninstallation of patch

2011-02-22 Thread Tom Crozier
I had tried this but when I run the second patch the UI sequence does not get run. Any ideas why this would happen? -Original Message- From: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] Sent: Tuesday, February 22, 2011 11:58 AM To: General discussion for Windows Installer XML toolset.

Re: [WiX-users] Disallowing uninstallation of patch

2011-02-22 Thread Peter Shirtcliffe
If you base the second patch on the RTM, itll need the new createfolder table entries in case the first patch is never applied. You need to base the second patch on the patched MSI (RTM + patch 1). -Original Message- From: Tom Crozier [mailto:tcroz...@rackwise.com] Sent: 22 February 2011

[WiX-users] Disallowing uninstallation of patch

2011-02-22 Thread Tom Crozier
Hi, What I am trying to accomplish is to first install an unremovable Small Update patch that adds new files into a new directory. (This works) Next is to install a removable Minor Update patch that delivers new versions of the files that were added in the first patch as well as modifications of

Re: [WiX-users] Why is WiX UI executed after CostFinalize?

2011-02-22 Thread John Mersh
So I assume that the AddLocal and Remove events wouldn't function if I ran the UI earlier? That certainly isn't documented anywhere that I can find. It is certainly the case that ADDLOCAL and REMOVE can be set before CostFinalize for example on the command line so I am surprised. The nearest to a

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Rob Mensching
IIRC, Windows Installer purposefully removes the Debug privilege from its custom action servers (which are what call you).I think the MSI SDK lists the priveleges removed somewhere... On Tue, Feb 22, 2011 at 6:13 AM, Jeff Wisgo wrote: > Phil, > > I checked and you are correct, the msiexec.exe th

Re: [WiX-users] Problem with RemoveExistingProducts action

2011-02-22 Thread James Johnston
In that case you have to be following component rules. See http://www.joyofsetup.com/2008/12/30/paying-for-upgrades/ Also with your placement, if the old version fails to uninstall then the user will have both old & new versions installed - something to keep in mind. Try putting it after Install

Re: [WiX-users] Running a custom action with elevated privileges

2011-02-22 Thread Jeff Wisgo
Phil, I checked and you are correct, the msiexec.exe that is the parent process is running with limited privileges. But isn't the purpose of "deferred" mode to run with elevaged privileges? Or are you saying that it will only elevate as far as msiexec's privileges are? I ran msiexec.exe from a SY

Re: [WiX-users] write to IniFile

2011-02-22 Thread Rob Mensching
Ahh, my mistake. It's the IniSearch that is rooted only in SystemFolder. I'm glad you pushed through and corrected me. On Mon, Feb 21, 2011 at 7:26 AM, Michael Tissington < michael_tissing...@ciqual.com> wrote: > Actually I have got it to work just great. It was a spelling mistake on my > part. >

[WiX-users] Multiple-Package Installations ???

2011-02-22 Thread Lambert Pandian
Hi, I am trying to write an exe to install multiple pancakes as described in MSDN. The problem is I get “Invalid- Handle” as soon as the MsiJoinTransaction function encounters. I have given my code below. static void Main(string[]

[WiX-users] Major Upgrade - MSI or Wix?

2011-02-22 Thread Michael Tissington
I'm wondering if or how this is possible. The client already has an msi package installed, which need admin rights to install I'm wanting to push a Major upgrade to the client. However I'd like the client to do a silent install with elevated privilages. Is this possible? -