[WiX-users] strong name sign for C# customaction.dll

2009-08-20 Thread Lian Jiang
Hi, I asked the same question a while ago. After some experiment, I repost this question with more information. It is very important for me because the C# custom action solution cannot scale without resolving signing issue. Without strong name signed, customaction.dll cannot consume other sig

[WiX-users] FW: 'Invalid character found' error while installing.

2009-08-20 Thread libin
Anybody please tell me whether this is a problem with WIX. Didn't see any hint other than registry cleanup. Even this happened when I tried to install the product for the first time in a computer. So In that case it maynot be a problem of registry cleanup. -Libin -Original Message- F

[WiX-users] FW: 'Invalid character found' error while installing.

2009-08-20 Thread libin
Anybody please tell me whether this is a problem with WIX. Didn't see any hint other than registry cleanup. Even this happened when I tried to install the product for the first time in a computer. So In that case it maynot be a problem of registry cleanup. -Libin -Original Message- F

Re: [WiX-users] How to strip the leading '#' from a numerical value retrieved from a reg key using RegistrySearch

2009-08-20 Thread Blair
DWORD registry values will always have a prefixed '#' character. It is possible for it to get a '+' or a '-' character following the '#' and preceding the actual number (in decimal aka base-10). You'll need a custom action to parse/strip it. The Windows Installer's formatted syntax doesn't have man

Re: [WiX-users] How to work with ALLUSERS

2009-08-20 Thread Blair
Dictionary, directory, both are in my email client's spell-check. Sorry. And yes, you should modify the File/@Id values the same way as the Component/@Id values. If you don't change the directory paths (or if you do, it is because you really are changing directories) and you don't alter the file n

Re: [WiX-users] How to work with ALLUSERS

2009-08-20 Thread Hotmail Acc
I am still getting the following errors:- G:\WiX3\ACT Network Sync\ACT Network Sync\Product.wxs(157,0): error LGHT0091: Duplicate symbol 'File:Act.Data.dll3' found. G:\WiX3\ACT Network Sync\ACT Network Sync\Product.wxs(157,0): error LGHT0092: Location of symbol related to previous error.

Re: [WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread Wilson, Phil
It's too late if you've already shipped that product, but for future reference if you have an uninstall custom action that you do NOT want to run during an upgrade add the condition NOT UPGRADINGPRODUCTCODE. That property is set in the old product being uninstalled during an upgrade. Phil Wil

[WiX-users] How to strip the leading '#' from a numerical value retrieved from a reg key using RegistrySearch

2009-08-20 Thread John Trump
I retrieve the IISPORT from the registry as follows: And build the url to our web page like this: http://localhost: [IISPORT]/CompanyName/product.Web/ProductHomePage/ProductHomePage.aspx The problem is that a '#' is prepended to the port number in [IISPORT]. H

Re: [WiX-users] Passing Preprocessor variables when using msbuild

2009-08-20 Thread Blair
Set your msbuild log verosity to diagnostic and look at: 1) What your properties' values are, and 2) What your candle commandline is. -Original Message- From: Sam K [mailto:sam.re...@gmail.com] Sent: Thursday, August 20, 2009 2:07 PM To: General discussion for Windows Installer XML toolse

Re: [WiX-users] How to work with ALLUSERS

2009-08-20 Thread Blair
No, with the Directory attribute set you don't need the Components inside a DirectoryRef. You do need to make the Ids and guids unique, however. I suggest the guids are '*' and the ids incorporate $(var.directory) (or anything else you are willing to define that you will vary).

Re: [WiX-users] Passing Preprocessor variables when using msbuild

2009-08-20 Thread Sam K
Hi Blair, Thanks for replying. I have declared them the way you have mentioned. But it still doesn't get those values passed. Don't know why? Thanks. On Thu, Aug 20, 2009 at 3:20 PM, Blair wrote: > Those variables are MSBuild variables. To reach candle, they need to be > added to one of the Defi

Re: [WiX-users] How to work with ALLUSERS

2009-08-20 Thread Hotmail Acc
Need some help to debug this:- Question :Do I have to put the "foreach" block into some directoryRef? If so how do I do it(since directory ref could be CommonAppDir1 or PersonalDir1). Also, this foreach section is not added into block. I got the following errors when compiled. Error:- G:\WiX

Re: [WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread John Ludlow
Hi, Just to provide an alternative, I personally use a CA which modifies the existing (1.0.0 in this case) MSI before REP happens. Sounds absolutely horrible (I almost pitched a fit when my boss suggested it) but, hey, it works. My CA is a VBS / WSF which uses the MSI COM API to load the existin

Re: [WiX-users] IPersistFile::Save return 0x8007007b in custom action.

2009-08-20 Thread Lian Jiang
I figured out that how to do below thing using shortcut table: create a shortcut under $(env.SYSTEMDRIVE)\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start menu\Programs\Startup Thanks for reminder. Cheers Lian -Original Message- From: Lian Jiang Sent: Thursday, Aug

Re: [WiX-users] showing a message with an ok button

2009-08-20 Thread Sean Farrow
Basically, if a product already exists, I want to tell the user and then run the existing uninstaller. Chers Sean. -Original Message- From: Blair [mailto:os...@live.com] Sent: 20 August 2009 20:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] showing

Re: [WiX-users] IPersistFile::Save return 0x8007007b in custom action.

2009-08-20 Thread Lian Jiang
Thanks Blair. I am trying to create a shortcut under $(env.SYSTEMDRIVE)\Users\Administrator\AppData\Roaming\Microsoft\Windows\Start menu\Programs\Startup, but I did not find any Folder property to do this declaratively. That's why I create my own custom action. I once made below scenario work

Re: [WiX-users] showing a message with an ok button

2009-08-20 Thread Blair
Some context? Not quite sure what you are trying to accomplish. -Original Message- From: Sean Farrow [mailto:sean.far...@seanfarrow.co.uk] Sent: Thursday, August 20, 2009 12:22 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] showing a message with an ok b

Re: [WiX-users] showing a message with an ok button

2009-08-20 Thread André Werlang
Hi Sean, take a look at this tutorial: http://www.tramontana.co.hu/wix/lesson8.php#8.3 Unfortunately we're unable to customize interfaces already created, apart from text messages and disable/hide controls via conditions. So usually we just copy some existing UI and tailor it for our needs. If

Re: [WiX-users] Passing Preprocessor variables when using msbuild

2009-08-20 Thread Blair
Those variables are MSBuild variables. To reach candle, they need to be added to one of the DefineConstants property. You could try adding this to your $(ROOT)\INSTALLERS\Test.wixproj file (note, this is untested): rootdir=$(rootdir);srcrootdir=$(srcrootdir) -Original Message- From:

[WiX-users] showing a message with an ok button

2009-08-20 Thread Sean Farrow
Hi: What is the best way with wix of showing a message with just an ok button. Regards Sean. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integrati

Re: [WiX-users] IPersistFile::Save return 0x8007007b in custom action.

2009-08-20 Thread Blair
That error code is "The filename, directory name, or volume label syntax is incorrect." Not sure which of the two paths it doesn't like. -Original Message- From: Blair [mailto:os...@live.com] Sent: Thursday, August 20, 2009 11:49 AM To: 'General discussion for Windows Installer XML toolse

[WiX-users] Passing Preprocessor variables when using msbuild

2009-08-20 Thread Sam K
Can anybody please tell me how to pass the preprocessor variables in msbuild? I have an include file which has things like and I use these in my actual wix files. I am using msbuild target and I wanted to know how I can pass these variables? I do this but for some reason I can't get

Re: [WiX-users] IPersistFile::Save return 0x8007007b in custom action.

2009-08-20 Thread Blair
Not sure, but why aren't you using MSI's Shortcut table instead of rolling your own? -Original Message- From: Lian Jiang [mailto:lji...@microsoft.com] Sent: Thursday, August 20, 2009 10:40 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] IPersistFile::Save

[WiX-users] IPersistFile::Save return 0x8007007b in custom action.

2009-08-20 Thread Lian Jiang
Hi, I have a custom action which creates a link (shortcut). The calling process between layers is: a) The function of creating link is implemented in a C++ DLL. It uses IPersistFile::Save to save the link. b) The function is wrapped in C# code using P/invoke. c) My C# custom a

Re: [WiX-users] How to work with ALLUSERS

2009-08-20 Thread Blair
The most reliable way would be to duplicate the components installing the files and condition them (one set uses "ALLUSERS" and the other set uses "NOT ALLUSERS"). You may be able to use the preprocessor's foreach to avoid duplicating the source code (note, I have not tested this):

Re: [WiX-users] Problem about installing windows services, need help!

2009-08-20 Thread Neil Sleightholm
Is you service dependent on any components in the GAC? If it is, then Windows Installer cannot start it because it tries to start the service before it has registered the components in the GAC. The only way round this I know is to use a custom action to start the service (or don't use the GAC). Ne

[WiX-users] How to work with ALLUSERS

2009-08-20 Thread Hotmail Acc
I need a sample wxs file which can install files to different location based on the value of ALLUSERS. Example:- allusers=1, some selected files will be installed to commonappdata folder(C:\Documents and Settings\All Users\Application Data). allusers={}, the above files will be installed

[WiX-users] XmlConfig to write raw xml

2009-08-20 Thread Alex Ivanoff
Is it possible to use XmlConfig to write raw xml as an element inner xml? For instance, in Can I write ? How will look like? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Si

[WiX-users] Determine the Directory of an IIS Web Site

2009-08-20 Thread Lucas Heinlen
I need to install some files to the root of an existing IIS website. What would be the best way to handle this? Does the WebSite element create any sort of reference to its root? I've searched for how to do this for a while to no avail. Hopefully, this is just something simple that I'm overl

Re: [WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sebastian Brand (Instyler Software)
To schedule it before any UI is shown, it must be sequenced in the installUIsequence, probably before CostInitialize. But this will remove the old version before the user has seen any UI and won't be able to stop uninstallation. In Windows Installer it would be more common sense to perform the use

Re: [WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sean Farrow
Ok: Does the InstallInitialize action ocure before any ui for the new installer? Ideally, I would like all this to occure before any new ui. Sean. -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: 20 August 2009 12:34 To: 'General discussio

Re: [WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread Sebastian Brand (Instyler Software)
Uh that's bad. Then I'd create a new custom action to copy user files to the new folder before removing the the old version. Using properties to store the contents of a file is probably not working... Also applications shouldn't store user files in the Program Files installation folder. Since Vist

Re: [WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sebastian Brand (Instyler Software)
Right after InstallValidate. Just set @After="InstallInitialize" when adding the custom action to the sequence Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -Original Message- From: Sean Farrow [mailto:sean.far..

Re: [WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread Konstantin Vlasenko
Yes, I know. But for some reasons I have implemented this custom action on uninstall. :) 2009/8/20 Sebastian Brand (Instyler Software) > > Hello, > > By default, Windows Installer never deletes files it doesn't know of (user > files). So how is this accomplished in v1.0.0? > > > Best regards,

Re: [WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sean Farrow
Hi: When is the Install initialize executed. Sean. -Original Message- From: Sebastian Brand (Instyler Software) [mailto:wix+us...@instyler.com] Sent: 20 August 2009 11:30 To: 'General discussion for Windows Installer XML toolset.' Subject: Re: [WiX-users] Obtaining a property and running

Re: [WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread Sebastian Brand (Instyler Software)
Hello, By default, Windows Installer never deletes files it doesn't know of (user files). So how is this accomplished in v1.0.0? Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -Original Message- From: Konstantin

Re: [WiX-users] SpawnDialog doesn't work

2009-08-20 Thread Sebastian Brand (Instyler Software)
Hello, Check the order of the events in the resulting MSI in the ControlEvent table. Maybe the Publish event you are adding with Order=1 is set after the NewDialog element to show the next page... Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. htt

[WiX-users] Prevent file deletion duting upgrade

2009-08-20 Thread Konstantin Vlasenko
Hello, I have the case below: 1. product.msi 1.0.0 deletes all files (even created by user) on uninstallation 2. product.msi 1.0.1 (RemoveExistingProducts Before="InstallInitialize" />) How to prevent particular file deletion on 1.0.0 uninstallation. Maybe it is possible to read file

Re: [WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sebastian Brand (Instyler Software)
Hi Sean, To get the registry values use the element to set the value to a property. Then use a with a condition using that property. Schedule that custom action after InstallInitialize in the InstallExecuteSequence. Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI install

Re: [WiX-users] Problem about installing windows services, need help!

2009-08-20 Thread Sebastian Brand (Instyler Software)
Hi, Can the service be started manually after it got installed? Best regards, Sebastian Brand Instyler Setup - Creating WiX-based MSI installations, elegantly. http://www.instyler.com -Original Message- From: bonn deng [mailto:bonnd...@gmail.com] Sent: Thursday, August 20, 2009 09:3

Re: [WiX-users] Problem in using Conditions.

2009-08-20 Thread Peter Shirtcliffe
If you want a launch condition to be always true after first-time installation, so you can uninstall, repair etc, just add "Installed or" to it. In your case: Installed or UDDIDBSERVICE The condition is case-sensitive. -Original Message- From: Natarajan, Thangaraj (MLITS) [mail

[WiX-users] Actions from Execute sequence in UI

2009-08-20 Thread Sebastian Brand (Instyler Software)
Hi guys, Does anybody know why the following standard sequence actions are allowed in the adminUIsequence table? I thought they should be authored into adminEXECUTEsequence only. Wix though allows to add them to adminUIsequence as well: -> InstallValidate, InstallInitialize, InstallAdminPackage, I

Re: [WiX-users] Problem about installing windows services, need help!

2009-08-20 Thread bonn deng
Sorry to bother, the command line I used in the Visual Studio 2008 Command Prompt is "InstallUtil PublishService.exe". 2009/8/20 bonn deng > Hi, all~ I ran into this weird problem as follows: > I'm using WiX3.0 to build an installation package which will install > several windows ser

[WiX-users] Problem about installing windows services, need help!

2009-08-20 Thread bonn deng
Hi, all~I ran into this weird problem as follows: I'm using WiX3.0 to build an installation package which will install several windows services, but I can't start the service correctly, every time I got the message: "Service 'PublishService' failed to start. Verify that you have sufficient

[WiX-users] Obtaining a property and running an exe if, and only if a property contains a value

2009-08-20 Thread Sean Farrow
Hi: I am testing a registry value (a string) for a previous installer written with another product, if the installation exe is found, I want to firstly obtain another registry value (a string) and then run the previous installer before re-installing the product using my installer. What is the be