[WiX-users] Conditionally scheduling a reboot in a deferred custom action DLL

2010-09-26 Thread Soren Dreijer
Hi, We’ve built a custom DLL for our WiX-powered installer because our product has a pretty complicated install sequence. Our custom DLL runs as a deferred custom action since it modifies system files, etc.. The problem we’re facing is that since our DLL does the heavy lifting of registering

Re: [WiX-users] Conditionally scheduling a reboot in a deferred customaction DLL

2010-09-27 Thread Soren Dreijer
: Soren Dreijer [mailto:dreijers...@echobit.net] Sent: 27 September 2010 00:05 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Conditionally scheduling a reboot in a deferred customaction DLL Hi, We've built a custom DLL for our WiX-powered installer because our product has a pretty

[WiX-users] Installing a WFP driver

2014-02-03 Thread Soren Dreijer
I'm attempting to install a WFP (Windows Filtering Platform) callout driver via WiX. All the driver's .inf file does during installation is to copy the .sys file to the Drivers folder and that's that. The driver isn't a typical driver in the sense that its .inf file doesn't have a

Re: [WiX-users] Installing a WFP driver

2014-02-03 Thread Soren Dreijer
Thanks Phill. You're right; WFP drivers are non-PNP drivers. I did try to use the legacy flag, but then the installer was complaining that the .sys file was missing even though it was copied properly to the target folder. I'll give it another try. Otherwise, I'll have to make a custom app that

[WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
Hi there, I want to make a backup of a file during a major upgrade. The CopyFIle element is pretty much what I need, but I'd like to generate the destination file name on the fly to prevent name clashing. Is there a way to do this with WiX that doesn't require me to use a custom action? Cheers,

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
, Carter Young ecyo...@grandecom.netwrote: I believe the SourceName Attribute is what you're looking for. http://wixtoolset.org/documentation/manual/v3/xsd/wix/copyfile.html Carter Quoting Soren Dreijer dreijer+l...@echobit.net: Hi there, I want to make a backup of a file during a major

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
be omitted to allow WiX to attempt to generate a unique short file name. However, if this name collides with another file or you wish to manually specify the short file name, then the DestinationShortName attribute may be specified. Quoting Soren Dreijer dreijer+l...@echobit.net: Hey Carter

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
...@firegiant.com wrote: What about using [Time]? ___ FireGiant | Dedicated support for the WiX toolset | http://www.firegiant.com/ -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Monday, March 10

Re: [WiX-users] Generating a unique file name

2014-03-10 Thread Soren Dreijer
, generate the name in a custom action, there you can use datetime.Tostring(HHmmss ) to format it any way you like, then put the value back into the session object where you can now use it any way you like. -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
: Taking a step back, I would have to ask why you are needing to make a copy of a file with a random name. If it's a user modified file, then an upgrade shouldn't touch it. -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Monday, March 10, 2014 8:58 PM

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
in the registry? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014 12:12 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Generating a unique file name Hey Jacob, It's an app.config file that's part

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
manually modifies the file, then a major upgrade should not remove it. If it was modified with XmlFile CA's or the likes, were the original user choices persisted in the registry? -Original Message- From: Soren Dreijer [mailto:dreijer+l...@echobit.net] Sent: Tuesday, March 11, 2014

Re: [WiX-users] Generating a unique file name

2014-03-11 Thread Soren Dreijer
change in the app.config. Then every major upgrade, have your app read the registry values... Takes a little bit of work and research, but will save you this headache. Carter Quoting Soren Dreijer dreijer+l...@echobit.net: The app.config is modified after installation by one of our tools

Re: [WiX-users] Generating a unique file name

2014-03-12 Thread Soren Dreijer
, create a directory in %USERS%/AppData/Local/AppName. Move the app.config file there til after the upgrade then use a CA, as you stated earlier to merge the 2 files, alleviating the need for a temporary name. Carter Quoting Soren Dreijer dreijer+l...@echobit.net: Carter, I can't

[WiX-users] Displaying custom error messages if deferred CA fails

2014-05-09 Thread Soren Dreijer
Hi all, I've Googled and searched the WiX mailing list, but I haven't been able to figure this one out yet. One of the biggest problems I've always had with MSIs is that they rarely return useful error messages. I'm using a custom bootstrapper and I'd like to display a custom error message if

Re: [WiX-users] Displaying custom error messages if deferred CA fails

2014-05-10 Thread Soren Dreijer
Thanks Phill! I also found this: http://msdn.microsoft.com/en-us/library/aa371247%28v=vs.85%29.aspx http://msdn.microsoft.com/en-us/library/aa370573%28v=vs.85%29.aspx However, I'm still not clear on how I go about handling that error code in my bootstrapper. For instance, let's say two different

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Soren Dreijer
it's what people use to report errors from deferred CAs, add them into the MSI log etc. --- Phil Wilson On Mon, May 12, 2014 at 8:57 AM, Soren Dreijer dreijer+l...@echobit.net wrote: Hey guys, So, I don't think I understand how this helps me. Like John pointed out, I

Re: [WiX-users] Displaying custom error messages if deferred CA fails [P]

2014-05-14 Thread Soren Dreijer
them, whether it's the MSI file's UI or your own UI set up by using MsiSetExternalUIRecord. I'm not familiar enough with the WIX bootstrapper UI to know for a fact that it does the MsiSetExternalRecordUI thing. --- Phil Wilson On Wed, May 14, 2014 at 11:09 AM, Soren Dreijer

[WiX-users] StopServices doesn't do anything during maintenance

2015-03-17 Thread Soren Dreijer
Hi there, Our WiX installer has the following action: ServiceControl Id=SomeId Name=[AgentServiceName] Stop=both Remove=uninstall / When our product is upgraded or uninstalled, the service is properly stopped by the MSI. However, if the product is reinstalled, such as when re-running the

Re: [WiX-users] Bootstrapper for multiple cultures

2015-04-27 Thread Soren Dreijer
Sorry for reviving a fairly old thread, but I'm working on localizing the MSIs inside a bundle and the following made me a bit uneasy: I use a single localized bootstrapper and separate localized msi(s). All of my UX GUI is in the mba, except for a few status and error messages in the MSI. I