Re: [WiX-users] RemoveExistingProducts after the InstallFinalize action still needed so that Major Upgrades don't remove assembly from GAC ?

2012-01-03 Thread CristianG
I've done some more tests and it seems that on Windows Installer 4.5 the assembly is removed from GAC after a major upgrade. Good to see that at least on 5.0 got fixed. -- View this message in context:

Re: [WiX-users] WIX Progress bar repeats twice during installation/uninstallation

2012-01-03 Thread Rob Mensching
What you are seeing is the default behavior of the Windows installer UI. It actually goes by 3 times typically, but the last one can be really fast so you might not have noticed it. It might go by more than 3 times as well. The only way to change that behavior is to create an external UI handler.

[WiX-users] Help Uninstall

2012-01-03 Thread abgrallyannick
Hi, I'm working with Wix 3.6, Installation goes well, but I've an issue when I try to uninstall. My detection process allows users to install (if package is absent) or uninstall( if package is present). After the uninstallation, I launch my installer in order to install again but my package

Re: [WiX-users] Can't find source code for WixUI_InstallDir.wxs

2012-01-03 Thread Alan Goode
Thanks for the reply Rob,, but could you be a little more specific? Does that mean that I need to connect to source control using TortoiseSVN and download the source from there? Alan Goode, PMP Engineering Development Lead KBR 601 Jefferson 30-2490D Houston, TX 77002 713-753-6668 -Original

Re: [WiX-users] WIX Progress bar repeats twice during installation/uninstallation

2012-01-03 Thread shanmukha sainath addepalli
Thanks for the reply Rob. I never used Burn. Is there any documentation explaining about creating external UI handler? can you please provide me any documentation related to that. Thanks, Sainath A. On Tue, Jan 3, 2012 at 2:13 PM, Rob Mensching r...@robmensching.com wrote: What you are seeing

Re: [WiX-users] RemoveExistingProducts after the InstallFinalize action still needed so that Major Upgrades don't remove assembly from GAC ?

2012-01-03 Thread Wilson, Phil
There is a hotfix available, not sure if this has been mentioned in this thread. http://support.microsoft.com/kb/972397/EN-US More Info says you also need http://support.microsoft.com/kb/983280 Phil W -Original Message- From: CristianG [mailto:cristian.gherghine...@gmail.com]

[WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
I have an sslConnect function which requires a file that is normally installed before the function is called. However, due to a change in what the client wants, I need to call the function before its installed. Is there a way to access the file before installation? Thanks. -- Kevin Hebert

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Adam Kadzban
You could include the file as a Binary, then have a custom action call it: Binary Id=MyEXE SourceFile=..\MyFile.exe / CustomAction Id=DoMyThing BinaryKey=MyEXE Execute=deferred / -Adam On Tue, Jan 3, 2012 at 12:06 PM, Kevin Hebert ke...@legendary-immersion.com wrote: I have an sslConnect

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
Thanks. I'll take a look into that. The function I'm writing that is calling the sslConnect function is a custom action in itself. So this shouldn't be too difficult. Hopefully. On 1/3/2012 12:24 PM, Adam Kadzban wrote: You could include the file as a Binary, then have a custom action call

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
This might sound incredibly silly, but can a custom action have more than one BinaryKey? I currently have: CustomAction Id=checkEmailExists BinaryKey=installerDLL DllEntry=CheckEmailExists / Currently, the BinaryKey here is the file that holds the custom action. But I'm wanting to access a

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Adam Kadzban
I'm not sure of a way to do it in WIX. I've used Custom Actions like this before, but always after I had put down the files they need. Maybe you can add the pem files as resources inside the DLL? Someone else might have a better solution though. -Adam On Tue, Jan 3, 2012 at 1:14 PM, Kevin

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Maciej Oszutowski
You can store your file in Binary table and save it from custom action to a temporary location. All you need is simple SQL query like: SELECT `Data` FROM `Binary` WHERE `Name`='mybinary' Then read record data using MsiRecordReadStream and write it to file. -- Cheers, Maciej -Original

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Castro, Edwin G. (Hillsboro)
A CustomAction cannot have more than one BinaryKey. The CheckEmailExists function will need to be responsible for extracting any resources it needs from the Binary table as well as cleanup. Edwin G. Castro Software Developer - Staff Digital Channels Fiserv Office: 503-746-0643 Fax: 503-617-0291

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
In my Product.wxs, I have the following: Directory Id=TARGETDIR Name=SourceDir Directory Id=SUPPORTDIR Name=SupporDir Component Id=SSLCerts1 Guid= File Id=ServerPEM1 Name=server.pem DiskId=1 Source=..\\..\\Common\\server.pem Vital=yes KeyPath=yes Hidden=yes/ File Id=RootPEM1 Name=root.pem

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
The question is though, how do I extract it? I'd thought I was going about it the right way, but apparently I'm not. On 1/3/2012 2:37 PM, Castro, Edwin G. (Hillsboro) wrote: A CustomAction cannot have more than one BinaryKey. The CheckEmailExists function will need to be responsible for

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Kevin Hebert
Sorry, I forgot to include the code in my custom action: MsiGetProperty(hInstall,LSUPPORTDIR,NULL,bufferSize); installDir = (wchar_t*)malloc((bufferSize+1)*sizeof(wchar_t)); MsiGetProperty(hInstall,LSUPPORTDIR, installDir, bufferSize); This is what I've got right now. However, if

[WiX-users] Add Domain Group to Local Group

2012-01-03 Thread Christopher Painter
I work in an enterprise environment and I have a request to add an Active Directory Group to a Local Group. Problem is I see the util::GroupRef element only allows util::User as a parent and not util::Group as a parent. I'd like to be able to run this MSI through SCCM and pass Domain/Name in

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Bill Tutt
On Tue, Jan 3, 2012 at 4:57 PM, Kevin Hebert ke...@legendary-immersion.com wrote: The question is though, how do I extract it? I'd thought I was going about it the right way, but apparently I'm not. I did it by using these two C++ helper functions at the end of the email. For each file I

Re: [WiX-users] Accessing file in MSI before it's installed

2012-01-03 Thread Bill Tutt
On Tue, Jan 3, 2012 at 5:26 PM, Bill Tutt b...@tutts.org wrote: Something like this: // Extract files to temp directory. hr = PathCreateTempDirectory(NULL, LHRCAAxeda%03x, 999, pwszTempDir); ExitOnFailure(hr, Failed to load create temp directory for DLL extraction.); extractedFiles =

[WiX-users] Are Visual Studio Add Item Wizards supported with Votive

2012-01-03 Thread Robert Brunhuber
Hello, I tried to create an Add Item Wizard for a Votive-project in Visual Studio 2008 and 2010 and failed (I could not get it to load, I'm going to provide more details if anyone is interested). Before I try to invest more time in debugging (the loading of) my wizard, I'd like to know if

Re: [WiX-users] Querying the package and installed productarchitecture

2012-01-03 Thread Wilson, Phil
I think the sample VBScripts in the SDK are useful to the extent that they describe the flow for folks that aren't familiar with how to use the APIs. Exporting an MSI table with no guidance at all is a pain, but I can see from WiExport.vbs that I open the database, do an OpenView with a Select

Re: [WiX-users] Querying the package and installed productarchitecture

2012-01-03 Thread Christopher Painter
Ok, let's pretend I'm a .NET developer who doesn't know anything about MSI and I follow you're advice of reading through WiExport.vbs to understand the flow of exporting an IDT file. First problem I'm going to hit is trying to add a reference to WindowsInstaller.Installer. Last time I

Re: [WiX-users] Querying the package and installed productarchitecture

2012-01-03 Thread Wilson, Phil
I'm not suggesting using the code in that way, only that any complete example is a roadmap of how to perform a task in terms of the APIs that are called and in what order. What's the status of DTF these days? Does Microsoft support it? Because whether DTF rocks or not is irrelevant when a

Re: [WiX-users] Querying the package and installed productarchitecture

2012-01-03 Thread Christopher Painter
I have extensive experience working in industries similar to what you describe (national security) and we had very formal controls as well. Our ETRB ( external technology review board ) had us jump through a few hoops when we said we wanted to start using WiX. Rob Mensching will probably

Re: [WiX-users] Querying the package andinstalled productarchitecture

2012-01-03 Thread Gary Gocek
Since my response to Alex Ivanoff's question led to this exchange, allow me to state that my use of the VBS scripts was because I had overlooked part of the API exposed by DTF (Microsoft.Deployment.WindowsInstaller). There are exceptions, but I agree with Christopher that most WIX developers are