[WiX-users] x64 support in WiX

2008-02-19 Thread Stas Klyachkovsky
Hi there, I need to be able to build WiX based MSI both to x86 and x64. Most of the components are the same on both platforms, but some of them are not. How can I do this? Should I hold two WiX projects? I prefer to have one and rebuild it depending on CPU architecture. Thanks, Stas

Re: [WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Bob Arnson
Dan Hoeger wrote: We are not at a good stage in our project to be upgrading the tools I suggested it only to help narrow down the problem: Is it a WiX bug or an environment/data problem? -- sig://boB http://joyofsetup.com/ --

Re: [WiX-users] SummaryCodepage='1200' causing error

2008-02-19 Thread Bob Arnson
zhisheng huang wrote: Thanks Bob! Why I try 1200 is because our previous version of product uses that and built with wix 2.0. Interesting thing is that wix 2.0 can compile that without problem. It fails with wix 3.0. Does this mean it is actually a bug in wix 2.0? WiX v2 doesn't run validat

Re: [WiX-users] Redistributing WiX in order to build custom installers for customers

2008-02-19 Thread Bob Arnson
Andrew Sinclair wrote: If this is a standard sort of thing to do then are there any standard Fragments etc for the WiX components themselves (candle, light etc) ? The WiX setup has them but they're not designed for embedding in another product (e.g., the component GUIDs would clash with th

Re: [WiX-users] Uninstall removes registry keys not written by installer

2008-02-19 Thread Bob Arnson
hongping wrote: > Hi, I am creating an installer and writing to the registry. Third-party > installers might also be writing to the same location as my installer for > sharing information. However, what I am seeing is that upon uninstall, even > keys written by other installers are removed, not jus

Re: [WiX-users] [Wix 3.0] Can't get PermissionEx working...

2008-02-19 Thread Bob Arnson
KStuart wrote: > Hi Bob, thanks for the reply, yes it was causing a rollback, however, being > new to WiX I was not reading the verbose debug log properly and just > searching for the first error and assuming that was the failure point , > looking again I noticed a similar SchedSecureObject error f

Re: [WiX-users] low bit depth rendering of bitmaps and icons?

2008-02-19 Thread Bob Arnson
Todd Newman (RMG) wrote: Bob was right. I converted my ico file to a bitmap and resized it using PhotoShop. The image looks smooth now. Of course, .ico files should have the image at multiple resolutions and it shouldn't have had to resample. But I find the .ico files hard to work with and

Re: [WiX-users] Need a custom action with UAC elevated privileges before InstallInitialize

2008-02-19 Thread Bob Arnson
Wilson, Phil wrote: Hear Hear! Many (if not most) install issues come from complicating an install with configuration tasks. It's nearly always easier and cheaper to have configuration using programs that run in a normal user environment and can be debugged and tested without having to wait

[WiX-users] Name of the msi with in the install file

2008-02-19 Thread vishnum
Hello All: I have a condition inside my install file based on the name of the msi for e.g: if my msi is named X then i set some registry keys but if its name is Y then I set it to something else... So is it possible to get the name of the msi inside the install file or Custom Action. Regards, V

Re: [WiX-users] low bit depth rendering of bitmaps and icons?

2008-02-19 Thread Todd Newman (RMG)
Bob was right. I converted my ico file to a bitmap and resized it using PhotoShop. The image looks smooth now. Of course, .ico files should have the image at multiple resolutions and it shouldn't have had to resample. But I find the .ico files hard to work with and maybe WiX does, too.

Re: [WiX-users] Uninstall removes registry keys not written by installer

2008-02-19 Thread KStuart
Does it make sense to have it otherwise, if other packages, say product add-ons maintain registry entries under your products 'Software\MyApp' they are indicating a dependency on your product, therefore if your product in uninstalled they are no longer functional anyway, if that's not the case and

[WiX-users] Create New Guid in Installer

2008-02-19 Thread DE�K JAHN, G�bor
On Mon, 18 Feb 2008 08:07:12 -0800, Steve Bush wrote: Steve, > Does anyone know of an easy way in WIX to automatically create a > GUID on install? I want to create a GUID that represents the user > and place it in the registry. Just write a five-minute custom action in C or your language of cho

Re: [WiX-users] Create New Guid in Installer

2008-02-19 Thread KStuart
Not sure if this will work for you but we've created GUIDs the following way in the past. I'm not sure we have example of what you're doing so maybe it'll work & maybe it won't. -- As the is a preprocessor statement surely it must resolve at compile time, also that guid pattern appears to b

Re: [WiX-users] [Wix 3.0] Can't get PermissionEx working...

2008-02-19 Thread KStuart
Hi Bob, thanks for the reply, yes it was causing a rollback, however, being new to WiX I was not reading the verbose debug log properly and just searching for the first error and assuming that was the failure point , looking again I noticed a similar SchedSecureObject error further down regarding

[WiX-users] Uninstall removes registry keys not written by installer

2008-02-19 Thread hongping
Hi, I am creating an installer and writing to the registry. Third-party installers might also be writing to the same location as my installer for sharing information. However, what I am seeing is that upon uninstall, even keys written by other installers are removed, not just the ones my installer

[WiX-users] Failed to read IIsWebSite table

2008-02-19 Thread zhisheng huang
Hi, Failed to read IIsWebSite table (-2147024891), The error code means "Acess is denied". What kind of access is happening here? What am I missing to set? Thanks for any hint! Zhisheng http://schemas.microsoft.com/wix/2006/wi"; xmlns:iis="http://schemas.microsoft.com/wix/IIsExtensio

Re: [WiX-users] Need a custom action with UAC elevated privileges before InstallInitialize

2008-02-19 Thread Wilson, Phil
"No. It sounds like what you want is to install everything and configure the product after it's installed." Hear Hear! Many (if not most) install issues come from complicating an install with configuration tasks. It's nearly always easier and cheaper to have configuration using programs that r

Re: [WiX-users] SummaryCodepage='1200' causing error

2008-02-19 Thread zhisheng huang
Thanks Bob! Why I try 1200 is because our previous version of product uses that and built with wix 2.0. Interesting thing is that wix 2.0 can compile that without problem. It fails with wix 3.0. Does this mean it is actually a bug in wix 2.0? I searched the web and can not find document on what

Re: [WiX-users] Issue with creating a file share

2008-02-19 Thread Alexander Shevchuk
According to documentation, parents of are either or . Try to move out from . From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ashok Kumar Sent: Tuesday, February 19, 2008 9:40 AM To: wix-users@lists.sourceforge.n

Re: [WiX-users] Redistributing WiX in order to build custom installersfor customers

2008-02-19 Thread Phil Sayers
I've had the exact same idea slowly fermenting in my head. Interested in how you make this work and any hiccups along the way. We still need to do some work with our product before we can make time to spend on the install story, but med-long term this is definitely of interest here. -Origin

[WiX-users] Redistributing WiX in order to build custom installers for customers

2008-02-19 Thread Andrew Sinclair
Hi, First off I'd like to say what a great tool WiX is and thanks to everybody who has helped in its development. I've been looking for articles or documentation on redistributing WiX as part of the msi it produces. I don't see why this shouldn't be a problem either technically or in terms

[WiX-users] Issue with creating a file share

2008-02-19 Thread Ashok Kumar
Hi, I am having trouble compiling the wix file which is creating a fileshare for a folder (this folder is also created in the wix itself). Any insight to what i am doing wrong would be helpful. Compilation error:1>Compiling - Candle .\InvoiceBackendProcessing.wxs InvoiceBackendProcessing.wixob

Re: [WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Dan Hoeger
We are not at a good stage in our project to be upgrading the tools This build is working great for us and aside from this one user on this one machine we don't have any issues. I was hoping that someone had seen this issue before and would know what he did to break his machine. Thanks, Dan

Re: [WiX-users] Moving existing MSI based setup to WiX roadmap

2008-02-19 Thread Bob Arnson
Stas Klyachkovsky wrote: 1. What is Fragment? See WiX.chm for the doc and the source for the WiX setup in src\Setup for an example. 2. How to handle IS UI (dialogs and flow)? The WixUI library can replace it, for standard UI; you can customize it to an extent. -- sig://b

Re: [WiX-users] [Wix 3.0] Can't get PermissionEx working...

2008-02-19 Thread Bob Arnson
[EMAIL PROTECTED] wrote: > The above fails with the following error, > > SchedSecureObjects: Error 0x80070002: failed to get security info for > object: C:\ProgramData\TestFolder\ > Does it cause the install to fail and roll back? -- sig://boB http://joyofsetup.com/ -

Re: [WiX-users] Moving existing MSI based setup to WiX roadmap

2008-02-19 Thread Stas Klyachkovsky
Hi Bob, 1. What is Fragment? 2. How to handle IS UI (dialogs and flow)? Thanks for your answer. Stas From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 6:20 PM To: Stas Klyachkovsky Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Moving existin

Re: [WiX-users] Moving existing MSI based setup to WiX roadmap

2008-02-19 Thread Bob Arnson
Stas Klyachkovsky wrote: What is the most convenient way to convert IS project to WiX? Use Dark to decompile your .msi package then break it apart into logical parts using Fragment. -- sig://boB http://joyofsetup.com/ ---

Re: [WiX-users] Vista, C Root, Hello world, Windows 3.1

2008-02-19 Thread Bob Arnson
Simon Topley wrote: > the issue. I have attempted to suggest sensible places we may want to > put our files, application data folder for example (if I could find a > common one that all users could use). Even the desktop. Sadly everyone > apart from me is rather keen on using the root of the C driv

Re: [WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Bob Arnson
Dan Hoeger wrote: We are using Version 3 build 2420 That's a very old build of WiX; I'd suggest upgrading to see if it repros. If it does, we'd need more detail about when/where it fails. If not, take the upgrade into your tree. -- sig://boB http://joyofsetup.com/ ---

Re: [WiX-users] append to registry

2008-02-19 Thread Bob Arnson
Jason Rivers wrote: > I would maybe do this - but the way the product is setup (and has been > for years) is this registry setting, I'm trying to avoid changing the > functionality of the product, the registry is there for application > settings, this is an application setting. If there's no way

[WiX-users] Moving existing MSI based setup to WiX roadmap

2008-02-19 Thread Stas Klyachkovsky
Hi there, I'm Setup developer. My MSI package is developed using InstallShield technology. Now I want to start using WiX. Where can I find best practice for WiX design? What is the most convenient way to convert IS project to WiX? Could somebody share his/her experience w/ such conversion? Thanks

Re: [WiX-users] append to registry

2008-02-19 Thread Jason Rivers
I would maybe do this - but the way the product is setup (and has been for years) is this registry setting, I'm trying to avoid changing the functionality of the product, the registry is there for application settings, this is an application setting. If there's no way to do this within WiX i'll sti

Re: [WiX-users] Create New Guid in Installer

2008-02-19 Thread Simon Topley
I assume you can't use: ---- Or maybe set this as the content of a property then use that property. Seems annoying to have to reinvent the wheel when WIX clearly has the code to do it. The information contained in this e-mail is likely to be confidential and may be

Re: [WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Dan Hoeger
We are using Version 3 build 2420 From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 19, 2008 9:47 AM To: Dan Hoeger Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Light giving a System.NullReferenceException Dan Hoeger wrote: One of our developers is seeing this on

Re: [WiX-users] How to add a environment path in windows XP and Vista

2008-02-19 Thread Bob Arnson
정재윤 wrote: > Did I add the environment path well? I added it by . > If not, how to add it? Use Environment. > How to approach on current user's home directory? There's no direct support for the profile directory because apps are supposed to use AppDataFolder or LocalAppDataFolder instead. You c

Re: [WiX-users] SummaryCodepage='1200' causing error

2008-02-19 Thread Bob Arnson
zhisheng huang wrote: If I have Summarycodepage attribute set in package element SummaryCodepage='1200' /> Light.exe fails with An unexpected Win32 exception with error code 0x654 occurred: This installation package could not be opened. Contact the application vendor to verify that this is

Re: [WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Bob Arnson
Dan Hoeger wrote: One of our developers is seeing this on his machine when he builds. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. I was able to log into this machine and go to the same directory and build clean. Consist

Re: [WiX-users] append to registry

2008-02-19 Thread Bob Arnson
Jason Rivers wrote: > for instance, we always want it to read "[INSTALLDIR]" but if Feature > 1 is installed, then they key should be > "[INSTALLDIR];[INSTALLDIR]\feature1" again, if Feature2 is installed > it should be "[INSTALLDIR];[INSTALLDIR]\feature2" and then if both 1 > and 2 are install

Re: [WiX-users] How to set a condition, that prevents custom actions on error

2008-02-19 Thread Bob Arnson
vishnum wrote: > Now I want to perform a different action for every custom action when the > custom action fails. > When actions fail, the installation should be rolled back, leaving the machine in its original state. -- sig://boB http://joyofsetup.com/ ---

Re: [WiX-users] rollback if VBScript return value < 0

2008-02-19 Thread Bob Arnson
kritza wrote: > 1 > Only actions between InstallInitialize and InstallFinalize cause rollback. -- sig://boB http://joyofsetup.com/ - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R)

[WiX-users] Vista, C Root, Hello world, Windows 3.1

2008-02-19 Thread Simon Topley
Where do I begin... First off I suppose I should say hello, it's been ages since I posted as our lovingly tailored installers have been carefree for sometime now. Here is my problem... Vista. Our application installs all manner of tutorial files that our users frequently mess about with and chan

Re: [WiX-users] log file and setupbld

2008-02-19 Thread Frédéric Viollet
Frédéric Viollet a écrit : > Hi everyone, > > I'm using the setupbld tool to generate exe files from my msi files and > this is working pretty well. > I was wondering, though, how could I do to send the "/log" command to > the msi > I tried > "mysetup.exe /msicl "log c:\temp\msi.log" > "myse

[WiX-users] Light giving a System.NullReferenceException

2008-02-19 Thread Dan Hoeger
One of our developers is seeing this on his machine when he builds. Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object. I was able to log into this machine and go to the same directory and build clean. Has anyone seen this before? Is there

[WiX-users] Kill systray before uninstall

2008-02-19 Thread Anidil
I use the following code,which invoke taskkill.exe to kill systray application before uninstal the product. Installed But it throws an error when the installer/uninstaller is run..Could anyone give me an insight on what's going wrong here?Is there any other way to do this? -- View

Re: [WiX-users] Create New Guid in Installer

2008-02-19 Thread KStuart
I'm new to wix and msi but it looks like you'll need to use a custom action, you could call into a dll or write a vbscript (it looks like using scripts in custom actions may be frowned upon), anyway you can set a property to a new guid and then reference that, the simplest example would be with a

[WiX-users] append to registry

2008-02-19 Thread Jason Rivers
Hi all. we have a registry string "WS" for our work spaces, but this should be modified depending on features that's installed. for instance, we always want it to read "[INSTALLDIR]" but if Feature 1 is installed, then they key should be "[INSTALLDIR];[INSTALLDIR]\feature1" again, if Feature2 is

Re: [WiX-users] Create New Guid in Installer

2008-02-19 Thread Pat Higgins
Not sure if this will work for you but we've created GUIDs the following way in the past. I'm not sure we have example of what you're doing so maybe it'll work & maybe it won't. Thx Pat From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Bush Sent: 18 February 2008 16:07 T

Re: [WiX-users] How to set a condition, that prevents custom actions on error

2008-02-19 Thread vishnum
Hello All: I wanted to do something similar here. I have a set of custom actions say X, Y and Z. Now I want to perform a different action for every custom action when the custom action fails. For eg: If X fails i want to write something to registry, if Y fails I want to delete a registry key and

Re: [WiX-users] rollback if VBScript return value < 0

2008-02-19 Thread kritza
Hello! Finnaly, I made it to get the script return 3 to the installer. The installer also recognizes that this is an error... BUT: The installed files don't get deleted! The rollbackfunction does not start! How do I get the rollbackfunction started! 1 Do I need to