Re: [WiX-users] Newbie Q - changing TARGETDIR based on mode

2007-10-11 Thread Chris Ridd
On 10 Oct 2007, at 11:55, Anton Filippov wrote: Hi. msiexec /i ...msi /quiet TARGETDIR=C:#Temp ? Is that # meant to be a backslash? Cheers, Chris - This SF.net email is sponsored by: Splunk Inc. Still grepping

Re: [WiX-users] WIX to install Services, but upgrade resets username/password

2007-10-11 Thread Jason Shay
I took the approach of no longer using the ServiceInstall tag to install the service. I'm using an evil custom action to call the installed service executable with a 'register' parameter when the feature is installed, and with 'unregister' when the feature is uninstalled. My desired upgrades

[WiX-users] Create shortcut to file thats isnt part of the install

2007-10-11 Thread Craig0ss
Hi there I need to know if its possible to create a shortuct using wix to a file thats not part of the install thank you -- View this message in context: http://www.nabble.com/Create-shortcut-to-file-thats-isnt-part-of-the-install-tf4606152.html#a13152567 Sent from the wix-users mailing list

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread János Brezniczky
Sounds evident, if I'm not wrong... the answer is in your letter. Have you tried sequencing it with installexecutesequence (and adminexecutesequence)? I mean adding InstallExecuteSequence StartServices Sequence=enter_a_sequence_number_big_enough_here / /InstallExecuteSequence It should work as

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Rob Hamflett
You could try using the quiet exec custom action to run sc start ServiceName. Run Peter Bergmann wrote: nope ... that did not work. If I force StartServices directly after install finalize either using orca or using Sequence=... the install process terminats with error code 2762 in the

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Peter Bergmann
6599 is also too early - SxS is not ready yet at this point. But I've solved it now as proposed by you and Rob using: Binary Id=wixca src=wixca.dll/ ... CustomAction Id=SetStartServiceCmdLine Property=QtExecCmdLine Value='[SystemFolder]sc.exe start MyServiceName' / CustomAction

[WiX-users] ConfigurableDirectory seems to change unrelated properties

2007-10-11 Thread OneReallyCoolApplication
Let's say I have some features with a ConfigurableDirectory set to a property: Feature Id=Test ... ConfigurableDirectory = INSTALLDIR ... /Feature Feature Id=AnotherTest ... ConfigurableDirectory = ANOTHERDIR ... /Feature If in a dialog the user changes the ConfigurableDirectory for one

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Peter Bergmann
... right, just checked it. Well, that really sucks ;( Original-Nachricht Datum: Thu, 11 Oct 2007 06:20:23 -0700 (PDT) Von: Christopher Painter [EMAIL PROTECTED] An: Peter Bergmann [EMAIL PROTECTED], wix-users@lists.sourceforge.net Betreff: Re: [WiX-users] Starting service

Re: [WiX-users] ConfigurableDirectory seems to change unrelatedproperties

2007-10-11 Thread Brian Simoneau
How are the Directory elements defined? If the Directory element for ANOTHERDIR is under the Directory element for INSTALLDIR, then changing INSTALLDIR is expected to change ANOTHERDIR as well. -Brian Simoneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On

Re: [WiX-users] Custom action to call a method in DLL

2007-10-11 Thread Brian Simoneau
The installer extracts the dll to the temporary location in order to call the custom action and then deletes the temp file. The actual error is in calling the custom action or in the custom action itself. -Brian Simoneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL

[WiX-users] IniFile - Getting user input

2007-10-11 Thread 0x001A4
I have a dialog in which users are going to be entering information. I know I can use IniFile to write to a file. But I cant use IniFile in a Dialog or UI so what would be the best way to write this information to a file after the user enters it? -- View this message in context:

[WiX-users] Set path variable use it to install files.

2007-10-11 Thread hina1703
I am looking for a way to set path variables in wxs file use it to copy the files to the targetdir. I have written the following code: Component Id='sepPath' Guid='{18422F21-C884-45f3-A1BD-FAD31DBEC55B}' Environment Id='setHelpPath' Name='PATH1' Action='create' System='no'

Re: [WiX-users] Create shortcut to file thats isnt part of the install

2007-10-11 Thread MatPdr
Yes it is, see this article http://robmensching.com/blog/archive/2007/04/27/How-to-create-an-uninstall-shortcut-and-pass-all-the.aspx Craig0ss wrote: Hi there I need to know if its possible to create a shortuct using wix to a file thats not part of the install thank you --

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread Richard.Foster
Hina, The $(env.Whatever) construct is used to pull a setting from the system environment at build time. The Environment element is used to configure an environment setting on the machine where the installation is performed. The correct answer will depend on what you are actually trying to

Re: [WiX-users] Custom action to call a method in DLL

2007-10-11 Thread Christopher Painter
Is drvutil.dll your own DLL or are you using a third party dll? Googling the name seems to imply that it might be from an APC SDK and in that case it's very unlikely to follow Type 1 standard call declaration.You would have to create a wrapper CA that invoke the APC DLL and pass the

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread hina1703
Richard, Thanks for the reply. I am trying to specify the source folder at build time. Rather than hard coding the path to pull the files for installation, I need to set the path variable. So that if I change the source folder, I just need to redefine the path variable rebuild the installer. I

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread hina1703
Thanks for your reply. I tried it but it gives error LGHT0100 : File of type 'File' with name '($var.HelpSourceFolder)\tutorial.pdf' could not be found. I made sure that specified file exists at the specified path. Is there any other way? Does any tutorial explain that? Hina Richard.Foster

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread Richard.Foster
Hina, It sounds as if what you really want is a standard preprocessor variable. Try something like this: ?xml version=1.0 encoding=utf-8? ?ifndef HelpSourceFolder? ?define HelpSourceFolder=C:\SomeFolder\Path? ?endif ? ... File Id='tutorial' Name='tutorial.pdf' DiskId='1'

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread hina1703
Thank you. That helped!! Hina Brian Simoneau wrote: The $ must be outside of the parentheses. $(var.HelpSourceFolder) instead of ($var.HelpSourceFolder) -Brian Simoneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hina1703 Sent:

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread Brian Simoneau
The $ must be outside of the parentheses. $(var.HelpSourceFolder) instead of ($var.HelpSourceFolder) -Brian Simoneau -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of hina1703 Sent: Thursday, October 11, 2007 2:47 PM To: wix-users@lists.sourceforge.net

Re: [WiX-users] Set path variable use it to install files.

2007-10-11 Thread Richard.Foster
Hina, Looks like a small typo - your error indicates ($var.HelpSourceFolder), the correct format is $(var.HelpSourceFolder). The dollar sign needs to be outside the parenthesis. :-) Regards, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Wilson, Phil
It's not MsiPublishAssemblies, just in case someone is tempted to try moving StartServices so that it's after MsiPublishAssemblies but before InstallFinalize. It's InstallFinalize where the commit actions take place, including the GAC assemblies. AFAIK MsiPublishAssemblies mainly takes

Re: [WiX-users] How to install Drivers using WiX

2007-10-11 Thread Christopher Painter
I'm curious about this also. I've never really been asked to do driver installation work and someone recently asking me to do this. They seemed to be very fixated on the ability to write driver co-installers in C++. Is this correct thinking or not? It seems with the declaritive

Re: [WiX-users] WIX to install Services, but upgrade resets username/password

2007-10-11 Thread Jason Shay
So I've spent a lot of time looking at this, with no luck so far. It looks like my problem is that states change during the execution, and there is no way for me to get the following behavior: 1. On first install, run my custom action to install the service 2. On uninstall, run my