[WiX-users] Reading WIX XML schema from web?

2009-07-29 Thread DONG LEE
Dumn novice question here. So I understand what XML schema is and that we need to specify one on every wxs sources, like http://schemas.microsoft.com/wix/2006/wi";> But I was wondering if there would be a way for me to actually read that schema. From my understanding, the XML schema is also in X

[WiX-users] Pressing yes to cancel button won't cause rollback

2009-07-07 Thread DONG LEE
Hi all, I am trying to detect whether a user cancels within a custom action by doing the following UINT __stdcall CA() { int retVal = 0; PMSIHANDLE hRecord = MsiCreateRecord(1); ... SomeLongOperation(); // trigger cancellation while this function is running MsiRecordSetStri

[WiX-users] Trouble Detecting User Cancellation

2009-07-06 Thread DONG LEE
Hi all, I am trying to detect whether a user cancels within a custom action by doing the following UINT __stdcall CA() { int retVal = 0; PMSIHANDLE hRecord = MsiCreateRecord(1); ... SomeLongOperation(); // trigger cancellation while this function is running MsiRecordSetStrin

[WiX-users] Why do we have to use different product codes for different architecture package?

2009-06-08 Thread DONG LEE
By browsing through the wix newsgroup, I've seen in multiple occasions that people say it is recommended to use different ProductCode GUIDs for packages targeted for different architectures, and even the UpdadeCode. What is the reason for that? I am building x86 and x64 packages with the same wix s

[WiX-users] UI localization help!

2009-06-04 Thread DONG LEE
I am linking my wix source file against Wix UI dialog .wxs's provided along with other Wix 2.0 source files to provide a rich UI dialogs including a progress dialog. http://schemas.microsoft.com/wix/2003/01/wi";> 1 ... I understand that we can link only one

[WiX-users] MsiOpenPackage vs. MsiOpenDatabase

2009-05-29 Thread DONG LEE
I am trying to investigate on differences between the handles returned by MsiOpenPackage and MsiOpenDatabase functions. Is the handle returned by MsiOpenPackage the only valid MSI handle that can be passed into the MSI functions that expects a handle to an installation, like MsiProcessMessage? I'd

[WiX-users] Closing MSIHANDLE question

2009-05-08 Thread DONG LEE
Hi, I am trying to determine if I need to close both of the handles in the following scenario. void func(MSIHANDLE hArgRecord) { ... } int main() { ... MSIHANDLE hRecord = MsiCreateRecord(n); .. func(hRecord); ... } Here, do I need to do MsiCloseHandle on both hRecord and hArgRecord? It seems t

[WiX-users] Modifying MSI database during installation help!

2009-05-06 Thread DONG LEE
Hi guys, So I am trying to edit MSI tables (component table, file table, ...) from a custom action while the MSI is being run. Following are the attempts I've made, and so far I have failed miserably. And I am attempting this because it needs to be customized after being shipped, in runtime based

[WiX-users] What in the world is "transaction mode"?

2009-05-05 Thread DONG LEE
While I was going through an MSI database manipulation example at http://msdn.microsoft.com/en-us/library/aa367523(VS.85).aspx, I realized that they had something like MsiOpenDatabase(_T("c:\\temp\\testdb.msi"), MSIDBOPEN_TRANSACT, &hDatabase). I tried to look for what MSIDBOPEN_TRANSACT flag mean

[WiX-users] Is there a Windows Installer API for extracting cabinet files?

2009-04-07 Thread DONG LEE
Is there a Windows Installer API that I can use to extract cabinet files out of a msi file? msidb.exe does the job, but it doesn't seem to be setting %errorlevel% at all. I need to extract the cabinet file in a commandline based build process in order to sign it with a certificate. The signing proc

[WiX-users] WiX 2.0 schema gone!

2009-03-04 Thread DONG LEE
Is anyone having the same problem? I cannot view the WiX schema page any more at wix.sourceforge.net/manual-wix2/wix_xsd_index.htm. It just brings up an empty page with some header images. Did it move to a new address, or are they forcing us to use wix 3 schema from now? This problem started from

[WiX-users] Uninstall conditions! which one should I use?

2009-03-03 Thread DONG LEE
I wrote a custom action that I call at an uninstall time. Right now, I have something like... . . . REMOVE~="ALL" and NOT REINSTALL I am calling the uninstall CA before RemoveRegistryValues because the CA needs some of the registry values. I originally had the uninstall CA cond

[WiX-users] Interpreting Return Codes of Executable Custom Action (type 2)

2009-03-01 Thread DONG LEE
Hello, I have some questions regarding processing return codes of a custom action that runs an executable. I have an exe file that I want to execute as a part of the installation process, but the complication is that the exit codes this file returns does not satisfy the type 2 custom action return