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

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Christopher Painter
I agree, not much disagreement. The way I look at it though is that InstallFinalize doesn't really do anything other then execute script generated by something else. For example if I wrote and scheduled a commit CA that did something ( good or bad ) it might be being done inside InstallFinal

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Wilson, Phil
I don't think there's much disagreement here. As I (and the documentation) said, it's InstallFinalize that does the commit, and I wasn't referring to any of the other things that are associated with the term "commit". I specifically mean that InstallFinalize is where fusion gets called to commi

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 nature

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Christopher Painter
If you read Stefan's article ( which I'm sure you have ) commit execution is really for cleaning up rollback information and isn't even run when rollback is disabled by policy. Seing how MsiPublishAssemblies is a `Standard` action instead of a Custom action I'm sure that it gets around this li

[WiX-users] How to install Drivers using WiX

2007-10-11 Thread ar
I am able to install drivers using DPInst.exe( It copies my drivers to DriversStore) I would like to do the same using WiX. With the following code I am able to copy the drivers to the System32 directory But not to the DriversStore. My objective behide doing this is I would like have an instal

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 care

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 > Sen

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 hina170

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 Subj

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 w

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: ... ... The mechanism shown above allows you to specify a default value for the setting, and also override that setting from the command line using (for example) candle -dHelpSource

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 result

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 Richard.Foster
Hina, The $(env.Whatever) construct is used to pull a setting from the system environment at build time. The 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 accomplish. Ar

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 >

[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: then I am using it to copy the help file: But while compiling I get error: "fatal error CNDL0023: Undefined environment variable: $(env.PATH1)". Can

[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: http://www.nabbl

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 Behal

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 PROTECTE

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Christopher Painter
Sorry. I'm sure there was some really good reason why they wrote MsiPublishAssemblies that way ( I don't buy the rollback reason getting it to work at all is more important then getting it to rollback IMO ), but it really stinks since installing in the Commit phase doesn't match the expec

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 s

[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: ... ... If in a dialog the user changes the ConfigurableDirectory for one feature, then the change impacts every other property by making the same directory changes for them - for example if INSTALLDIR = "C:\Progr

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Christopher Painter
I'm afraid that you haven't really solved it An immeadiate CA scheduled after InstallFinalize won't have the needed permissions to start the service in scenarios like UAC/Limited User and Elevated/Managed installations. I would personally bite the bullet and get a bootstrapper together to

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: ... ... Many Thanks! However I'm still wondering what the "official" way is to start up a service that needs access to the included VC2005 distributable runtime libr

[WiX-users] FileSearch doesn't work (Wix 2.0)

2007-10-11 Thread fiordean dacian
Hi, I'm trying to unsinstall an app other then the one I install (by calling its uninstall.exe). Here is how I do this: ... ... ... AND (!FullInstallation = 3) AND APPUNINSTALL ... Well, I want the custom action executed only on

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

2007-10-11 Thread Anidil
I have a customaction as follows which invokes the "IsUPSPresent" function inside drvutil.dll. As i see in the verbose MSI logs, installer seems to have accessed "DLL: C:\Windows\Installer\MSI8342.tmp" instead of the actual dll specified, and the MSI end up in install failure. Am

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 ". 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 very e

Re: [WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Peter Bergmann
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 very end ... whatever that means ... Original-Nachricht > Datum: Thu, 11 Oct 2007 13:08:55 +

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 It should work as an override. A typical value for enter_a_sequence_number_big_enough_here could be anything > 6600, e.g. 6700 s

[WiX-users] Starting service after InstallFinalze

2007-10-11 Thread Peter Bergmann
I'm writing an installer that installs a service which depends on the VC2005 runtime libraries. I'm including the runtime's .msm files using and which works just fine. However at the time when the StartServices action gets triggered the SxS stuff obviously is not yet in place and my service fa

[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 a

[WiX-users] Share a directory using WIx on install

2007-10-11 Thread Craig0ss
Hi I need to know if its possible to share a directory as part of the install?? If this is possible any ideas on how to go about it Thanks -- View this message in context: http://www.nabble.com/Share-a-directory-using-WIx-on-install-tf4606151.html#a13152564 Sent from the wix-users mailing li