[WiX-users] how to make text in MSI UI to select and copy
Hi All I need to write a text control in MSI UI in such way that user can select and copy it. Is there any way to do that? Thanks in advance. ~Manikyam - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Change Back/Next/Cancel buttons size
Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Change Back/Next/Cancel buttons size
[EMAIL PROTECTED] and [EMAIL PROTECTED] You'll probably want to adjust [EMAIL PROTECTED] and [EMAIL PROTECTED] too. Lexa Rogovoy wrote: Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Change Back/Next/Cancel buttons size
Hello, Rob. You wrote Thursday, March 15, 2007, 1:35:58 PM: [EMAIL PROTECTED] and [EMAIL PROTECTED] You'll probably want to adjust [EMAIL PROTECTED] and [EMAIL PROTECTED] too. How can i do this in all standard dialogs? When i am add BrowseDlg, DiskCostDlg and other standard dialogs, i am get errors like: Z:\Releases\122\common\UIFragment.wxs(145) : error LGHT0091 : Duplicate symbol 'Dialog:BrowseDlg' found. ... Lexa Rogovoy wrote: Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Change Back/Next/Cancel buttons size
Are you creating your own *and* linking in the WiX provided ones? Rob Lexa Rogovoy wrote: Hello, Rob. You wrote Thursday, March 15, 2007, 1:35:58 PM: [EMAIL PROTECTED] and [EMAIL PROTECTED] You'll probably want to adjust [EMAIL PROTECTED] and [EMAIL PROTECTED] too. How can i do this in all standard dialogs? When i am add BrowseDlg, DiskCostDlg and other standard dialogs, i am get errors like: Z:\Releases\122\common\UIFragment.wxs(145) : error LGHT0091 : Duplicate symbol 'Dialog:BrowseDlg' found. ... Lexa Rogovoy wrote: Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Change Back/Next/Cancel buttons size
Hello, Rob. You wrote Thursday, March 15, 2007, 2:05:33 PM: Are you creating your own *and* linking in the WiX provided ones? This is part of my code: UIFragment.wxs ?xml version='1.0' encoding='utf-8'? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Id=MyUI TextStyle Id=WixUI_Font_Normal FaceName=Tahoma Size=8 / TextStyle Id=WixUI_Font_Bigger FaceName=Tahoma Size=12 / TextStyle Id=WixUI_Font_Title FaceName=Tahoma Size=9 Bold=yes / Property Id=DefaultUIFont Value=WixUI_Font_Normal / Property Id=WixUI_Mode Value=InstallDir / Property Id=ARPNOMODIFY Value=1 / Property Id=WIXUI_INSTALLDIR Value=INSTALLDIR / Property Id=LicenseAccepted Value=No / Dialog Id=BrowseDlg Width=370 Height=270 Title=!(loc.BrowseDlg_Title) ... /Dialog ... /UI /Fragment /Wix common.wxs ... Product ... ... UIRef Id=MyUI / ... /Product this is my link command: c:\Program Files\Windows Installer XML v3\bin\light.exe -out ./_msi/product.msi common.wixobj UIFragment.wixobj -ext WixUIExtension -ext WixUtilExtension -loc ./je/wixui_ja-jp.wxl -loc ./je/ui_ja-jp.wxl -cultures:ja-jp Rob Lexa Rogovoy wrote: Hello, Rob. You wrote Thursday, March 15, 2007, 1:35:58 PM: [EMAIL PROTECTED] and [EMAIL PROTECTED] You'll probably want to adjust [EMAIL PROTECTED] and [EMAIL PROTECTED] too. How can i do this in all standard dialogs? When i am add BrowseDlg, DiskCostDlg and other standard dialogs, i am get errors like: Z:\Releases\122\common\UIFragment.wxs(145) : error LGHT0091 : Duplicate symbol 'Dialog:BrowseDlg' found. ... Lexa Rogovoy wrote: Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Registry Value / Preprocessor issue
Jason, The error message is actually more helpful than it might seem at first. The names you have provided for the preprocessor to use are simply not valid. If you are defining those items using ? define ?, or the -d prompt at the command line then you need to prefix them with var. whenever they are referenced. If the items are environment variables, you must prefix them with env.. What you *probably* want is the following: $(var.hClientWnd) $(var.Node) $(var.DBUserID) $(var.ConnectionString) $(var.Product) PackageReport ChangeDoc [EMAIL PROTECTED] Unfortunately without knowing how those items are defined, I cannot be sure of that. Regards, Richard -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Wednesday, March 14, 2007 7:12 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Registry Value / Preprocessor issue How would I set a registry value to: $(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product) PackageReport ChangeDoc [EMAIL PROTECTED] If I use this: $(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product) PackageReport ChangeDoc [EMAIL PROTECTED] Candle returns this error whether I escape the $ characters or not: error CNDL0149 : Ill-formed preprocessor variable 'hClientWnd'. Variables must have a prefix (like 'var.', 'env.', or 'sys.') and a name at least 1 character long. If I escape the first parenthesis, like this: $\(hClientWnd) $\(Node) $\(DBUserID) $\(ConnectionString) $\(Product) PackageReport ChangeDoc [EMAIL PROTECTED] It compiles fine, however, the string is inserted as the value exactly as typed, which is incorrect. So how can I set this registry value using WiX? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users * C O N F I D E N T I A L I T Y N O T I C E * --- The content of this e-mail is intended solely for the use of the individual or entity to whom it is addressed. If you have received this communication in error, be aware that forwarding it, copying it, or in any way disclosing its content to any other person, is strictly prohibited. Peek Traffic Corporation is neither liable for the contents, nor for the proper, complete and timely transmission of (the information contained in) this communication. If you have received this communication in error, please notify the author by replying to this e-mail immediately and delete the material from any computer. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Change Back/Next/Cancel buttons size
It certainly looks like a clash between your own dialog and the one in the WiX UI libs. I've never used the WiX provided stuff, so I'm not sure how to override a dialog with your own. Rob Lexa Rogovoy wrote: Hello, Rob. You wrote Thursday, March 15, 2007, 2:05:33 PM: Are you creating your own *and* linking in the WiX provided ones? This is part of my code: UIFragment.wxs ?xml version='1.0' encoding='utf-8'? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Fragment UI Id=MyUI TextStyle Id=WixUI_Font_Normal FaceName=Tahoma Size=8 / TextStyle Id=WixUI_Font_Bigger FaceName=Tahoma Size=12 / TextStyle Id=WixUI_Font_Title FaceName=Tahoma Size=9 Bold=yes / Property Id=DefaultUIFont Value=WixUI_Font_Normal / Property Id=WixUI_Mode Value=InstallDir / Property Id=ARPNOMODIFY Value=1 / Property Id=WIXUI_INSTALLDIR Value=INSTALLDIR / Property Id=LicenseAccepted Value=No / Dialog Id=BrowseDlg Width=370 Height=270 Title=!(loc.BrowseDlg_Title) ... /Dialog ... /UI /Fragment /Wix common.wxs ... Product ... ... UIRef Id=MyUI / ... /Product this is my link command: c:\Program Files\Windows Installer XML v3\bin\light.exe -out ./_msi/product.msi common.wixobj UIFragment.wixobj -ext WixUIExtension -ext WixUtilExtension -loc ./je/wixui_ja-jp.wxl -loc ./je/ui_ja-jp.wxl -cultures:ja-jp Rob Lexa Rogovoy wrote: Hello, Rob. You wrote Thursday, March 15, 2007, 1:35:58 PM: [EMAIL PROTECTED] and [EMAIL PROTECTED] You'll probably want to adjust [EMAIL PROTECTED] and [EMAIL PROTECTED] too. How can i do this in all standard dialogs? When i am add BrowseDlg, DiskCostDlg and other standard dialogs, i am get errors like: Z:\Releases\122\common\UIFragment.wxs(145) : error LGHT0091 : Duplicate symbol 'Dialog:BrowseDlg' found. ... Lexa Rogovoy wrote: Hello, I need change Back/Next/Cancel buttons size in all dialogs. How can i do this? -- Lexa -- Lexa - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Locate a required file during an install
Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial (http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Registry Value / Preprocessor issue
From the WiX.chm Preprocessor documentation: * If you want to use a literal $(, escape the dollar sign with a second one. For example, $$( -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Wednesday, March 14, 2007 4:12 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Registry Value / Preprocessor issue How would I set a registry value to: $(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product) PackageReport ChangeDoc [EMAIL PROTECTED] If I use this: $(hClientWnd) $(Node) $(DBUserID) $(ConnectionString) $(Product) PackageReport ChangeDoc [EMAIL PROTECTED] Candle returns this error whether I escape the $ characters or not: error CNDL0149 : Ill-formed preprocessor variable 'hClientWnd'. Variables must have a prefix (like 'var.', 'env.', or 'sys.') and a name at least 1 character long. If I escape the first parenthesis, like this: $\(hClientWnd) $\(Node) $\(DBUserID) $\(ConnectionString) $\(Product) PackageReport ChangeDoc [EMAIL PROTECTED] It compiles fine, however, the string is inserted as the value exactly as typed, which is incorrect. So how can I set this registry value using WiX? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Locate a required file during an install
No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial (http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [WiX-users] Locate a required file during an install
Did you set up the proper [EMAIL PROTECTED] attribute for the entry point? On 3/15/07, Rob Hamflett [EMAIL PROTECTED] wrote: No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial (http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Custom UI
Hi, I'm trying to make my own custom UI with wix. I reed this tuto: http://www.tramontana.co.hu/wix/ But I really don't understand how make the sequence. In particular the After attribute of the Show tag (in InstallUISequence) And the Event attribute of the Publish tag in controls. The only event I understand is NewDialog which is really simple. Could someone help me or give me url of another tuto or doc? Thank you - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Locate a required file during an install
I have the following elements defined. Do they look right? CustomAction Id=CheckForLicenseFiles BinaryKey=Bin_CheckForLicenseFiles DllEntry=Bin_CheckForLicenseFiles / And Binary Id=Bin_CheckForLicenseFiles SourceFile=LicenseFileCheck.dll / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Thursday, March 15, 2007 10:02 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial (http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business
Re: [WiX-users] Locate a required file during an install
No, I think that your @DllEntry should be set to CheckLicenseFiles. On 3/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the following elements defined. Do they look right? CustomAction Id=CheckForLicenseFiles BinaryKey=Bin_CheckForLicenseFiles DllEntry=Bin_CheckForLicenseFiles / And Binary Id=Bin_CheckForLicenseFiles SourceFile=LicenseFileCheck.dll / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Thursday, March 15, 2007 10:02 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial (http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action? - Take Surveys. Earn Cash. Influence the Future of IT Join
Re: [WiX-users] Locate a required file during an install
I honestly don't know :-) I'm totally inexperienced in this area. I tried to mimic a working example I had, and both the wix elements and the c++ source look equivalent (to me) Is there some documentation that describes what you're talking about? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Levi Wilson Sent: Thursday, March 15, 2007 10:15 AM To: Rob Hamflett Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Did you set up the proper [EMAIL PROTECTED] attribute for the entry point? On 3/15/07, Rob Hamflett [EMAIL PROTECTED] wrote: No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial ( http://www.tramontana.co.hu/wix/lesson3.php http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I might need a custom action, on the other hand, that functionality is already part of WiX (i.e. using ConfigurableDirectory in a Feature) I'm not sure if it's accessible in the context I'd like, a separate step in the install sequence. Can anyone offer a suggestion on the correct course of action?
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9495618 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Locate a required file during an install
Ah, thanks! That did the trick. It makes a lot more sense when you start to realize what things are being used to reference. Thank you both for your help. From: Levi Wilson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 15, 2007 10:25 AM To: Rowland, Chris Cc: [EMAIL PROTECTED]; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install No, I think that your @DllEntry should be set to CheckLicenseFiles. On 3/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have the following elements defined. Do they look right? CustomAction Id=CheckForLicenseFiles BinaryKey=Bin_CheckForLicenseFiles DllEntry=Bin_CheckForLicenseFiles / And Binary Id=Bin_CheckForLicenseFiles SourceFile=LicenseFileCheck.dll / -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Thursday, March 15, 2007 10:02 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install No, Win32 should be right. I can't really see what the problem would be with your installer. Just as a sanity check, you do have an entry for it in the Binary table, right? [EMAIL PROTECTED] wrote: Thanks for the advice Rob. I've got the directory browsing dialog in place, but I'm having issues getting my dll to work. When I hit the Next button in my dialog, I get an 'installer information' message window that says There is a problem with this Windows Installer package. A DLL required for this install to complete could not be run. My dll is mostly a duplicate of the sample custom action example in the tutorial ( http://www.tramontana.co.hu/wix/lesson3.php ) #include stdafx.h #include windows.h #include msi.h #include msiquery.h #pragma comment(linker, /EXPORT:[EMAIL PROTECTED]) #pragma comment(lib, msi.lib) extern C UINT __stdcall CheckLicenseFiles (MSIHANDLE hInstall) { char Pid[MAX_PATH]; DWORD PidLen = MAX_PATH; MsiGetProperty (hInstall, MYFOLDER, Pid, PidLen); MsiSetProperty (hInstall, LicenseFilesFound, true); return ERROR_SUCCESS; } // CheckLicenseFiles I have a property MYFOLDER defined, as well as LicenseFilesFound Property Id='MYFOLDER' Value='c:\'/ Property Id=LicenseFilesFound Value='false' / Here's snippet from my dialog: Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Publish Event=DoAction Value=CheckForLicenseFiles1/Publish Publish Event=SpawnDialog Value=InvalidDirDlgLicenseFilesFound = false/Publish Publish Event=NewDialog Value=SetupTypeDlgLicenseFilesFound = true/Publish /Control I have noticed that in Visual Studio the source platform for the dll is Win32 as opposed to .NET. Could that be an issue? I'm entirely unexperienced with the .NET platform. Thanks again, Chris -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Hamflett Sent: Tuesday, March 13, 2007 12:47 PM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Locate a required file during an install Here's a sample of what you're (hopefully) looking for. As I understand it, you want the user to browse to a directory where getyour existing files are, and then you want to verify them. The attached include files are put together from a couple of our products, and have had the usual secret stuff sanitised. So they might not work as-is, but will at least give you an idea of what you're looking for. In GetExistingFilesDlg the user is prompted for a path. This value will be stored in the property MYFOLDER. When they click next, this will call a custom action called checkFiles. This will have to be a DLL custom action which you need to write. It will need to get the MYFOLDER property, look for the files, and then write back a property called FILES_EXIST with yes if they exist, and something else if they don't. You need to set [EMAIL PROTECTED] to 'check' or 'ignore' because you need the action to finish before the installer continues. The other actions attached to the 'Next' button are based on the value of FILES_EXIST which you've just written. The installation will either continue, or the user will get a pop-up dialog. This is FilesAbsentDlg. The user is told the files are not there, and clicks OK to go back to GetExistingFilesDlg. The mailing list appears to be banning zip files, so I've renamed the extension to .piz Rob P.S. I've not attached the binary files for the background images. [EMAIL PROTECTED] wrote: I'm working on an installer that depends upon files that the user has received prior to performing the installation. Our current installer (not windows installer based) prompts the user to browse for the location of the files... I'm trying to replicate this, but I'm not exactly sure how to go about it. On one hand I think I
[WiX-users] German Messages
I've built some MSIs and they seem to all have certain messages that always appear in German. I have used the English localization file, and almost all the text in the installer is English, but some messages are still German. This is not usually an issue, since these messages are normally only on screen for a few seconds, but if the installer is run on a slow machine it will be visible. Is there any reason for this? Is there an easy way to replace these with English? Thanks. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] VB6 msm
Hi, I use the MSVBVM60.msm to deploy an application made in VB6 In the log file of the installation, I can see this C:\WINDOWS\system32\MSVBVM60.DLL But when I run my program, it say it need vb6fr.dll If I copy this dll in the system32 directory it's ok, but it's not really clean. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
Thanks guys, I'll try right now ! Erich. Erich Buhler wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9497426 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] votive and iisextension
Does Votive support building a wxs file with the iisextension? I am getting an error: The Component element contains an unhandled extension element 'iis:WebVirtualDir'. Please ensure that the extension for elements in the 'http://schemas.microsoft.com/wix/IIsExtension' namespace has been provided. Thanks Shane - The information contained in this message is confidential proprietary property of Nelnet, Inc. and its affiliated companies (Nelnet) and is intended for the recipient only. Any reproduction, forwarding, or copying without the express permission of Nelnet is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to this e-mail. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Overide a file version to force upgrade
On to an upgrade question-I have an installer that just installs a single EXE right now, and I'd like to be able to create an upgrade path for it. The trick is, I'd like to be able to have a package that will upgrade within the same file version. If I change only the package code (small upgrade), and set the condition to upgrade minimum version 1.0.0.0 inclusive, the upgrade still seems to run from the command line, but no files are actually changed unless their versions have been modified (e.g. changing the exe's version to 1.0.0.1 from 1.0.0.0). I'd like to be able to leave the exe as version 1.0.0.0, and then publish an installer that will replace the version on the target machine. In Installshield, I was able to do this by setting a property that overrode the file version for upgrade checks-is there a way to do the same in Wix? All I want to do is update components where the version is less than or equal to the version in the package-not just less than. This comes up a lot in our development/QA builds. I'd also rather not mess with the version numbers by incorporating a build number at the end (i.e. 1.0.0.X). All four segments are meaningful to our apps, and you can't seem to add a fifth, so we're sort of stuck. Any suggestions? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Conditional Display of dialog
I have an msi with 2 custom dialogs in it. The first one has a single edit that the user will enter a registration code in. The next button has a Custom Action called ValidateRegCode that calls to a helper dll to validate the users entry. If the user has entered a valid registration code the dll sets the property REGISTRATIONCODEVALID to 'true'...if the code is not valid it sets REGISTRATIONCODEVALID to 'false'. Depending on the value of REGISTRATIONCODEVALID I want to go to either my other custom dialog straight to the VeriyReady dialog. This all seems to work fine except that I have to click on the next button twice to move the the next dialog??? The code for my dialog looks like this: Dialog Id=RegistrationCodeDlg Width=370 Height=270 Title=[ProductName] [Setup] NoMinimize=yes Control Id=RegCodeLabel Type=Text X=45 Y=73 Width=220 Height=15 TabSkip=no Text=Registration Code: / Control Id=RegCodeEdit Type=Edit X=45 Y=85 Width=220 Height=18 Property=REGISTRATIONCODE Text={80} / Control Id=Back Type=PushButton X=180 Y=243 Width=56 Height=17 Text=amp;Back Publish Event=NewDialog Value=[RegistrationCodeDlg_Back]1/Publish /Control Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=amp;Next Publish Event='DoAction' Value='ValidateRegCode'1/Publish Publish Event=NewDialog Value=[RegistrationCodeDlg_FALSE]REGISTRATIONCODEVALID=false/Publish Publish Event=NewDialog Value=[RegistrationCodeDlg_TRUE]REGISTRATIONCODEVALID=true/Publish /Control Control Id=Cancel Type=PushButton X=304 Y=243 Width=56 Height=17 Cancel=yes Text=Cancel Publish Event=SpawnDialog Value=CancelDlg1/Publish /Control Control Id=Description Type=Text NoWrap=no X=25 Y=23 Width=280 Height=30 Transparent=yes NoPrefix=yes TextPlease enter your registration code. /Text /Control Control Id=BottomLine Type=Line X=0 Y=234 Width=370 Height=0 / Control Id=Title Type=Text X=15 Y=6 Width=200 Height=15 Transparent=yes NoPrefix=yes Text{\WixUI_Font_Title}Registration Code/Text /Control Control Id=BannerLine Type=Line X=0 Y=44 Width=370 Height=0 / /Dialog I know that the dll is being called properly as I can see it in the install log file and I can write out to file in the dll when it gets called. Any thoughts or ideas would be greatly appreciated. Thanx Chuck -- View this message in context: http://www.nabble.com/Conditional-Display-of-dialog-tf3409345.html#a9498138 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] heat errors scanning files
I'm using heat with the -scom flag to generate a file with all of the registry settings directly. This is being used as the first step in an automated build script that's external to the dev environment. The problem is heat keeps generating a popup error when it tries to scan certain files and it pauses the entire script until you click ok, is there any way to suppress this popup box either with heat or within the perl script I'm using to run the build? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
Hi Levi, I tried the example you included, but it didn't work in Wix 3.0. Could you provide me a whole example please? Thanks, Erich. Levi Wilson wrote: There's this section: *Component* Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4' *File* Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf' *Shortcut* Id=startmenuManual Directory=ProgramMenuDir Name=Manual LongName=Instruction Manual / /*File* /*Component* And then there's the section that defines the ProgramMenuDir: *Directory* Id=ProgramMenuFolder Name=PMenu LongName=Programs *Directory* Id=ProgramMenuDir Name='Foobar10' LongName=Foobar 1.0 / /*Directory* The Directory / definition will create a folder in the startmenu named Foobar 1.0. This does this, because it's parent is the ProgramMenuFolder, which is one of the define System Folders found here: http://msdn2.microsoft.com/en-us/library/aa372057.aspx On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9495618 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9498378 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
what error message are you getting? Erich Buhler wrote: Thanks guys, I'll try right now ! Erich. Erich Buhler wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9498441 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
What didn't work? Can you post your WiX fragment for us to look at? Only the portion of the wxs file that has the shortcut that you're trying to create. Did the installation go through, but your start menu folder not get created? What happened? On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi Levi, I tried the example you included, but it didn't work in Wix 3.0. Could you provide me a whole example please? Thanks, Erich. Levi Wilson wrote: There's this section: *Component* Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4' *File* Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf' *Shortcut* Id=startmenuManual Directory=ProgramMenuDir Name=Manual LongName=Instruction Manual / /*File* /*Component* And then there's the section that defines the ProgramMenuDir: *Directory* Id=ProgramMenuFolder Name=PMenu LongName=Programs *Directory* Id=ProgramMenuDir Name='Foobar10' LongName=Foobar 1.0 / /*Directory* The Directory / definition will create a folder in the startmenu named Foobar 1.0. This does this, because it's parent is the ProgramMenuFolder, which is one of the define System Folders found here: http://msdn2.microsoft.com/en-us/library/aa372057.aspx On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9495618 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9498378 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
Yes, the installation runs fine but doesn't create the folders in the Start Menu at all. I manage now to change the source to the following: File Id=ReleaseNotes Name=Dot Net SDK Release Notes.doc Source=$(var.TrunkComponentRelease)\Dot Net SDK Release Notes.doc Shortcut Id=NewShortcut3 Directory=ProgramMenuFolder1 LongName=NewShortcut3 Name=NewShort Advertise=yes Show=normal/ !--Shortcut Id=adguide Directory=DashMenuDir Name=AdGuide LongName=Agilent Business Dashboard Admin Guide WorkingDirectory=manuals Advertise=yes /-- /File Directory Id=ProgramMenuFolder Name=PMFolder Directory Id=ProgramMenuFolder1 Name=MyProduct / /Directory but I received the following error: Error 17 ICE64: The directory ProgramMenuFolder1 is in the user profile but is not listed in the RemoveFile table. D:\BlackDeath\SuperSolution\WixDotNetSDK\WixDotNetSDKRelease.wxs240 1 WixDotNetSDKRelease Thanks, Erich. Levi Wilson wrote: What didn't work? Can you post your WiX fragment for us to look at? Only the portion of the wxs file that has the shortcut that you're trying to create. Did the installation go through, but your start menu folder not get created? What happened? On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi Levi, I tried the example you included, but it didn't work in Wix 3.0. Could you provide me a whole example please? Thanks, Erich. Levi Wilson wrote: There's this section: *Component* Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4' *File* Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf' *Shortcut* Id=startmenuManual Directory=ProgramMenuDir Name=Manual LongName=Instruction Manual / /*File* /*Component* And then there's the section that defines the ProgramMenuDir: *Directory* Id=ProgramMenuFolder Name=PMenu LongName=Programs *Directory* Id=ProgramMenuDir Name='Foobar10' LongName=Foobar 1.0 / /*Directory* The Directory / definition will create a folder in the startmenu named Foobar 1.0. This does this, because it's parent is the ProgramMenuFolder, which is one of the define System Folders found here: http://msdn2.microsoft.com/en-us/library/aa372057.aspx On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9495618 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
Someone correct me if I'm wrong, but I think that if you want the shortcut installed for All Users, you need to define this property: Property Id=ALLUSERS Value=1 / If you don't, inside that Component / you can have this: RemoveFolder Id=MyRemFolder Directory=ProgramMenuFolder1 On=uninstall / On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Yes, the installation runs fine but doesn't create the folders in the Start Menu at all. I manage now to change the source to the following: File Id=ReleaseNotes Name=Dot Net SDK Release Notes.doc Source=$(var.TrunkComponentRelease)\Dot Net SDK Release Notes.doc Shortcut Id=NewShortcut3 Directory=ProgramMenuFolder1 LongName=NewShortcut3 Name=NewShort Advertise=yes Show=normal/ !--Shortcut Id=adguide Directory=DashMenuDir Name=AdGuide LongName=Agilent Business Dashboard Admin Guide WorkingDirectory=manuals Advertise=yes /-- /File Directory Id=ProgramMenuFolder Name=PMFolder Directory Id=ProgramMenuFolder1 Name=MyProduct / /Directory but I received the following error: Error 17 ICE64: The directory ProgramMenuFolder1 is in the user profile but is not listed in the RemoveFile table. D:\BlackDeath\SuperSolution\WixDotNetSDK\WixDotNetSDKRelease.wxs240 1 WixDotNetSDKRelease Thanks, Erich. Levi Wilson wrote: What didn't work? Can you post your WiX fragment for us to look at? Only the portion of the wxs file that has the shortcut that you're trying to create. Did the installation go through, but your start menu folder not get created? What happened? On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi Levi, I tried the example you included, but it didn't work in Wix 3.0. Could you provide me a whole example please? Thanks, Erich. Levi Wilson wrote: There's this section: *Component* Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4' *File* Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf ' *Shortcut* Id=startmenuManual Directory=ProgramMenuDir Name=Manual LongName=Instruction Manual / /*File* /*Component* And then there's the section that defines the ProgramMenuDir: *Directory* Id=ProgramMenuFolder Name=PMenu LongName=Programs *Directory* Id=ProgramMenuDir Name='Foobar10' LongName=Foobar 1.0 / /*Directory* The Directory / definition will create a folder in the startmenu named Foobar 1.0. This does this, because it's parent is the ProgramMenuFolder, which is one of the define System Folders found here: http://msdn2.microsoft.com/en-us/library/aa372057.aspx On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9495618 Sent from the wix-users mailing list
Re: [WiX-users] RegistrySearch fails in Wix 3.0
Yes, you're 100% right. if the default value is empty, then the answer is that the folder doesn't exist even if it does. I changed the example to ask for a value inside it, and it worked. I copy the new version for the sake of the community :-) Property Id=SEARCHFORNET20 RegistrySearch Id=RegistrySearch2 Root=HKLM Type=raw Name=Install Key=SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727/ /Property Thanks, Erich. Levi Wilson wrote: Doesn't the RegistrySearch / require that the @Name attribute be defined? Maybe you'll want to set the @Name equal to one of the registry values found in that key, such as the Install or something. Then, if SEARCHFORNET20 is set to anything, it exists. If not, then it doesn't. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I have the following line, but even the folder exists on the registry, Wix says the opposite. Property Id=SEARCHFORNET20 RegistrySearch Id=RegistrySearch2 Root=HKLM Type=directory Key=SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727 / /Property Is it possible that Wix 3.0 doesn't like the spaces in NET Framework Setup? Do you know how to solve it? Thank, Erich. -- View this message in context: http://www.nabble.com/RegistrySearch-fails-in-Wix-3.0-tf3409533.html#a9498749 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- View this message in context: http://www.nabble.com/RegistrySearch-fails-in-Wix-3.0-tf3409533.html#a9499274 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Overide a file version to force upgrade
I would prefer incrementing the file version number. If that's not feasible, you could set REINSTALLMODE to vemus instead of vomus (o = overwrite 'o'lder version, e = overwrite older or 'e'qual version). Version lying can have undesired side effects, like downgrades or unwanted auto-repairs. -- Stefan Krueger Microsoft Windows Installer MVP Please post your questions in the newsgroup or vist one of these web sites: Windows Installer FAQ http://www.msifaq.com - http://www.msifaq.de InstallSite - Resources for Setup Developers http://www.installsite.org http://www.installsite.de (GERMAN) Chris Bardon [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] On to an upgrade question-I have an installer that just installs a single EXE right now, and I'd like to be able to create an upgrade path for it. The trick is, I'd like to be able to have a package that will upgrade within the same file version. If I change only the package code (small upgrade), and set the condition to upgrade minimum version 1.0.0.0 inclusive, the upgrade still seems to run from the command line, but no files are actually changed unless their versions have been modified (e.g. changing the exe's version to 1.0.0.1 from 1.0.0.0). I'd like to be able to leave the exe as version 1.0.0.0, and then publish an installer that will replace the version on the target machine. In Installshield, I was able to do this by setting a property that overrode the file version for upgrade checks-is there a way to do the same in Wix? All I want to do is update components where the version is less than or equal to the version in the package-not just less than. This comes up a lot in our development/QA builds. I'd also rather not mess with the version numbers by incorporating a build number at the end (i.e. 1.0.0.X). All four segments are meaningful to our apps, and you can't seem to add a fifth, so we're sort of stuck. Any suggestions? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] German Messages
Which are the messages/dialog where you see this. Some texts may be coming from the operating system or MSI engine. Are you testing on a English OS with locale set to English and your ProductLanguage is English, too? -- Stefan Krueger Microsoft Windows Installer MVP Please post your questions in the newsgroup or vist one of these web sites: Windows Installer FAQ http://www.msifaq.com - http://www.msifaq.de InstallSite - Resources for Setup Developers http://www.installsite.org http://www.installsite.de (GERMAN) Ian Couper [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I've built some MSIs and they seem to all have certain messages that always appear in German. I have used the English localization file, and almost all the text in the installer is English, but some messages are still German. This is not usually an issue, since these messages are normally only on screen for a few seconds, but if the installer is run on a slow machine it will be visible. Is there any reason for this? Is there an easy way to replace these with English? Thanks. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] RegistrySearch fails in Wix 3.0
You cannot search for the existance of a registry KEY (folder icon in regedit), only for a value. Type Directory means that this value should be treated as a directory (with trailing backslash). -- Stefan Krueger Microsoft Windows Installer MVP Please post your questions in the newsgroup or vist one of these web sites: Windows Installer FAQ http://www.msifaq.com - http://www.msifaq.de InstallSite - Resources for Setup Developers http://www.installsite.org http://www.installsite.de (GERMAN) Erich Buhler [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi guys, I have the following line, but even the folder exists on the registry, Wix says the opposite. Property Id=SEARCHFORNET20 RegistrySearch Id=RegistrySearch2 Root=HKLM Type=directory Key=SOFTWARE\Microsoft\NET Framework Setup\NDP\v2.0.50727 / /Property Is it possible that Wix 3.0 doesn't like the spaces in NET Framework Setup? Do you know how to solve it? Thank, Erich. -- View this message in context: http://www.nabble.com/RegistrySearch-fails-in-Wix-3.0-tf3409533.html#a9498749 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] verify file existance custom action
I read that managed code in a custom action is a no-no (please forgive me if I use the wrong terminology) so I am attempting to write my custom action without using managed code. Most examples I find seem to use it, however, so I'm doing the best I can. I wrote a simple VC++ app (.exe) that will determine if some files exist. I probably did it badly, but it worked in that context. I took the same code, and cut paste into a VC++ file I had setup to create my dll. The code was previously a working snippet that would simply set a msi property to true and return ERROR_SUCCESS. I am now trying to make it do something useful. After the cut paste I got some build errors and followed (somewhat) the steps listed here to resolve them. http://support.microsoft.com/?kbid=814472 The dll built successfully, but when I run the installer I get error 2896, Executing action [2] failed. That doesn't tell me too much. I stepped backwards until I had one line that I could comment/uncomment to make the dll work(return true)/not work(error 2896) The one line that causes it to fail (and concequently causes the dll to double in size) is: ifstream fin1(filename); Down the road I was doing 'if (fin1.good())' to see if the file exists (like I said, probably a bad way, but it was the first thing I did that seemed to work) Is attempting to do this fundamentally wrong? Also, I'm running the installer with /l* but I'm still not getting anything particularly helpful. Are there better techniques for debugging? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] verify file existance custom action
Can you post your CA C++ code? Also, you don't need to have a DLL custom action to check for the existence of a file. You can do something like this in your WiX source: Property Id=MyFileExists DirectorySearch Id=MyDirSearch Path=some path here Depth=1 FileSearch Id=MyFileSearch Name=myfile.extension / /DirectorySearch /Property If the file has been found, then the MyFileExists property will be set to the full path of your file. Is this what you're looking for? On 3/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I read that managed code in a custom action is a no-no (please forgive me if I use the wrong terminology) so I am attempting to write my custom action without using managed code. Most examples I find seem to use it, however, so I'm doing the best I can. I wrote a simple VC++ app (.exe) that will determine if some files exist. I probably did it badly, but it worked in that context. I took the same code, and cut paste into a VC++ file I had setup to create my dll. The code was previously a working snippet that would simply set a msi property to true and return ERROR_SUCCESS. I am now trying to make it do something useful. After the cut paste I got some build errors and followed (somewhat) the steps listed here to resolve them. http://support.microsoft.com/?kbid=814472 The dll built successfully, but when I run the installer I get error 2896, Executing action [2] failed. That doesn't tell me too much. I stepped backwards until I had one line that I could comment/uncomment to make the dll work(return true)/not work(error 2896) The one line that causes it to fail (and concequently causes the dll to double in size) is: ifstream fin1(filename); Down the road I was doing 'if (fin1.good())' to see if the file exists (like I said, probably a bad way, but it was the first thing I did that seemed to work) Is attempting to do this fundamentally wrong? Also, I'm running the installer with /l* but I'm still not getting anything particularly helpful. Are there better techniques for debugging? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] German Messages
On Thu, 15 Mar 2007 11:22:26 -0400, Ian Couper wrote: Ian, Ive built some MSIs and they seem to all have certain messages that always appear in German. I have used the English localization file, and almost all the text in the installer is English, but some messages are still German. You're probably running on a German version of XP, aren't you? Any Installer message that comes from the system itself and not from your installer package will appear in the language of the operating system. Bye, Gábor --- DEÁK JAHN, Gábor -- Budapest, Hungary E-mail: [EMAIL PROTECTED] - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Product codes and component guids
Is there any reason not to have a script automatically regenerate the product code for each build? To my understanding, it has to change with every release anyway, so why not automatically generate it? Also, it's my understanding that component GUIDs are supposed to change whenever their contents change. What's the best way to handle this? When we're making a release, it's not immediately obvious what components have files that have changed since the last release, and there's no way we can regenerate the guid on a component every time anyone makes a change to any of the files it's composed from. -- View this message in context: http://www.nabble.com/Product-codes-and-component-guids-tf3410752.html#a9502841 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] verify file existance custom action
Hmmm, I've never used a directory search like that. So you're saying that your MYFOLDER property isn't getting set when the directory search is performed? I think you probably will need to maybe use a custom action then since I don't think you can dynamically manipulate a directory search, or tell it when to perform it as I think file searches get executed during the AppSearch sequence? I could be wrong, but I don't think you can use the FileSearch like this. On 3/15/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: That actually looks like exactly what I want… much cleaner than my C++ hackjob. That gives me a followup question, however. I plugged your suggestion (with Depth=0) into my dialog I use to browse to the directory that contains the file. It appears that the property I'm trying to set to the browsed-to directory doesn't contain the browsed-to directory when the DirectorySearch is performed. Dialog Id=GetExistingFilesDlg Width=370 Height=270 Title=[ProductName] [Setup] NoMinimize=yes Control Id=PathEdit Type=PathEdit X=84 Y=202 Width=261 Height=18 Property=MYFOLDER/ Control Id=Next Type=PushButton X=236 Y=243 Width=56 Height=17 Default=yes Text=Next Property Id=MYFILEEXISTS DirectorySearch Id=MyDirSearch Path=[MYFOLDER] Depth=0 FileSearch Id=MyFileSearch Name= requiredfile.txt / /DirectorySearch /Property Publish Event=SpawnDialog Value=InvalidDirDlgNOT MYFILEEXISTS/Publish Publish Event=NewDialog Value=SetupTypeDlgMYFILEEXISTS/Publish /Control I initialized MYFOLDER with Property Id='MYFOLDER' Value='c:\' / This works if requiredfile.txt is in c:\ (I can see MYFILEEXISTS=c:\requiredfile.txt in the log) It doesn't work if I browse to the directory that contains the file (and of course I remove the file from c:\ ) Thanks for the help so far, this feels like a much better way than what I was previously attempting. -- *From:* Levi Wilson [mailto:[EMAIL PROTECTED] *Sent:* Thursday, March 15, 2007 3:50 PM *To:* Rowland, Chris *Cc:* wix-users@lists.sourceforge.net *Subject:* Re: [WiX-users] verify file existance custom action Can you post your CA C++ code? Also, you don't need to have a DLL custom action to check for the existence of a file. You can do something like this in your WiX source: Property Id=MyFileExists DirectorySearch Id=MyDirSearch Path=some path here Depth=1 FileSearch Id=MyFileSearch Name=myfile.extension / /DirectorySearch /Property If the file has been found, then the MyFileExists property will be set to the full path of your file. Is this what you're looking for? On 3/15/07, * [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I read that managed code in a custom action is a no-no (please forgive me if I use the wrong terminology) so I am attempting to write my custom action without using managed code. Most examples I find seem to use it, however, so I'm doing the best I can. I wrote a simple VC++ app (.exe) that will determine if some files exist. I probably did it badly, but it worked in that context. I took the same code, and cut paste into a VC++ file I had setup to create my dll. The code was previously a working snippet that would simply set a msi property to true and return ERROR_SUCCESS. I am now trying to make it do something useful. After the cut paste I got some build errors and followed (somewhat) the steps listed here to resolve them. http://support.microsoft.com/?kbid=814472 The dll built successfully, but when I run the installer I get error 2896, Executing action [2] failed. That doesn't tell me too much. I stepped backwards until I had one line that I could comment/uncomment to make the dll work(return true)/not work(error 2896) The one line that causes it to fail (and concequently causes the dll to double in size) is: ifstream fin1(filename); Down the road I was doing 'if (fin1.good())' to see if the file exists (like I said, probably a bad way, but it was the first thing I did that seemed to work) Is attempting to do this fundamentally wrong? Also, I'm running the installer with /l* but I'm still not getting anything particularly helpful. Are there better techniques for debugging? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the
Re: [WiX-users] Windows Installer 4.0 msi schema
Hello, I looked at the command line options and I hope I didn't overlook the obvious. Is there a way to have Wix create an msi with all the tables in the schema even though they may be empty? Thanks, Tom From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 5:09 PM To: Mike Dimmick; Thomas Svare; wix-users@lists.sourceforge.net Subject: RE: [WiX-users] Windows Installer 4.0 msi schema Although, if it is a standard MSI table you shouldn't need CustomTable at all (if you do, it's a bug in the WiX toolset smile/). From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mike Dimmick Sent: Wednesday, March 14, 2007 2:48 PM To: 'Thomas Svare'; wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Windows Installer 4.0 msi schema The PatchCertificates element is supported in WiX v3.0, which generates MsiPatchCertificate table entries. If you need a table that isn't supported by WiX, you can use the CustomTable element. -- Mike Dimmick From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Thomas Svare Sent: 14 March 2007 21:18 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Windows Installer 4.0 msi schema Hello, I'm not sure if I'm phrasing this correctly but I'll throw it out there anyway... Is there any way with Wix to pick up new tables in the Windows Installer 4.0 msi schema? I'm particularly interested in the MSIPatchCertificate table. Thanks, Tom - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] custom action to reg NET 2.0
Your solution helped me find what was wrong with mine. For some reason the CA didn't like what I was putting in for the Directory value. I put in INSTALLDIR and everything worked great. Thanks! From: Dhaval Patel [mailto:[EMAIL PROTECTED] Sent: Friday, March 09, 2007 4:59 PM To: Don Tasanasanta Subject: Re: [WiX-users] custom action to reg NET 2.0 Here is one of my CustomAction elements that I have used in different projects - I don't see anything in your CA that will not allow it to work, but maybe you want to change the ExeCommand attribute to something like I have and give it a shot: InstallExecuteSequence Custom Action='Installation' After='InstallFinalize'NOT Installed/Custom /InstallExecuteSequence CustomAction Id='Installation' Directory='INSTALLDIR' Win64='no' ExeCommand='[WindowsFolder]Microsoft.NET\Framework\v2.0.50727\regasm.ex e /codebase [ProgramFilesFolder]MyComapny\MyProduct\MyProduct.dll' Return='check' / This seems to work just fine (i.e. it successfully registers the .dll for COM Interop in the registry). I think I had the same issue that you are having, but I figured out the solution through trial and error, and then I forgot all about it :) The problem I think is that you may think WIX will execute the CA from within the Directory ([FRAMEWORKBASEPATH]v2.0.50727 in your case) attribute, but that probably is not the case. Notice in my case how I explicitly pass all the paths to the ExeCommand attribute directly - I don't even worry about the Directory attribute (I assume you can set it to any valid DirectoryId within your current WIX project, if you decide to use the technique I am using). This is probably the reason why it is working in my case, and not yours. Let us all know if this fixes your issue :) On 3/8/07, Don Tasanasanta [EMAIL PROTECTED] wrote: I have been banging my head against this all day... I'm trying to get aspnet_regiis.exe to run and set the ASPNET version to 2.0 for my virtual directory. Here is my custom action... CustomAction Id=SetAspNet Return=asyncWait Directory=[FRAMEWORKBASEPATH]v2.0.50727 Execute=commit ExeCommand=aspnet_regiis.exe -s W3SVC/1/ROOT/MYWebsite -norestart / Where FRAMEWORKBASEPATH is the path to Framework under Microsoft.NET in the WINDOWS folder. I have also tried CustomAction Id=VIA3AdminAspNet Return=asyncWait Property=[ASPNETREGPATH] Execute=commit ExeCommand=-s W3SVC/1/ROOT/MyWebsite -norestart / Where ASPNETREGPATH is the entire path plus aspnet_regiis.exe I have also tried changing the Execute to immediate and sequencing the custom action after installfinalize. Every time I run I get a 1631 return from my custom actions. The command line works just fine when run from a cmd prompt. What am I missing here? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] How to create folders and shortcuts in the Start Menu? (Wix 3.0)
I'd just like to ask some questions relating to this area, because I cannot find much meaningful documentation about it. All we want to do is create shortcuts to some of the files we are installaing. We are using the latest Votive. Assume we are happy to install to all users. 1) What exactly does it mean to advertise a short cut? 2) Using advertised shortcuts and the RemoveFolder tip you made earlier, we have managed to create a shortcut that is visible within a sub directory of Start Menu. But it doesn't actually link correctly; on inspection the target name is set to the name of the product. Why is this? 3) Should I set ALLUSERS = 1 as well? How does it manifest? Would it effect the previous point? From what I cans see, the ICE errors are not fixed by ALLUSERS=1. 4) Are icons required to get the Start menu shortcut working correctly? 5) Does there exist a working example in Wix 3.0? Should we perhaps not be using Wix 3.0? Levi Wilson wrote: Someone correct me if I'm wrong, but I think that if you want the shortcut installed for All Users, you need to define this property: Property Id=ALLUSERS Value=1 / If you don't, inside that Component / you can have this: RemoveFolder Id=MyRemFolder Directory=ProgramMenuFolder1 On=uninstall / On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Yes, the installation runs fine but doesn't create the folders in the Start Menu at all. I manage now to change the source to the following: File Id=ReleaseNotes Name=Dot Net SDK Release Notes.doc Source=$(var.TrunkComponentRelease)\Dot Net SDK Release Notes.doc Shortcut Id=NewShortcut3 Directory=ProgramMenuFolder1 LongName=NewShortcut3 Name=NewShort Advertise=yes Show=normal/ !--Shortcut Id=adguide Directory=DashMenuDir Name=AdGuide LongName=Agilent Business Dashboard Admin Guide WorkingDirectory=manuals Advertise=yes /-- /File Directory Id=ProgramMenuFolder Name=PMFolder Directory Id=ProgramMenuFolder1 Name=MyProduct / /Directory but I received the following error: Error 17 ICE64: The directory ProgramMenuFolder1 is in the user profile but is not listed in the RemoveFile table. D:\BlackDeath\SuperSolution\WixDotNetSDK\WixDotNetSDKRelease.wxs 240 1 WixDotNetSDKRelease Thanks, Erich. Levi Wilson wrote: What didn't work? Can you post your WiX fragment for us to look at? Only the portion of the wxs file that has the shortcut that you're trying to create. Did the installation go through, but your start menu folder not get created? What happened? On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi Levi, I tried the example you included, but it didn't work in Wix 3.0. Could you provide me a whole example please? Thanks, Erich. Levi Wilson wrote: There's this section: *Component* Id='Manual' Guid='YOURGUID-574D-4A9A-A266-5B5EC2C022A4' *File* Id='Manual' Name='Manual.pdf' DiskId='1' Source='Manual.pdf ' *Shortcut* Id=startmenuManual Directory=ProgramMenuDir Name=Manual LongName=Instruction Manual / /*File* /*Component* And then there's the section that defines the ProgramMenuDir: *Directory* Id=ProgramMenuFolder Name=PMenu LongName=Programs *Directory* Id=ProgramMenuDir Name='Foobar10' LongName=Foobar 1.0 / /*Directory* The Directory / definition will create a folder in the startmenu named Foobar 1.0. This does this, because it's parent is the ProgramMenuFolder, which is one of the define System Folders found here: http://msdn2.microsoft.com/en-us/library/aa372057.aspx On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: I have read it, but it doesn't say anything about it (there are 2 mentions only about the way of creating shortcuts, but nothing about creating shortcuts and folders in the Start Menu). Cheers, Erich. Levi Wilson wrote: You should check out the tutorial linked off of the wix.sourceforge.netpage. On 3/15/07, Erich Buhler [EMAIL PROTECTED] wrote: Hi guys, I couldn't find any working example of how to create a folder in the Start Menu and then include some shortcuts inside. It looks to be quite easy, but I couldn't find the way to do that. Does anybody have any good example? Thanks, Erich. -- View this message in context: http://www.nabble.com/How-to-create-folders-and-shortcuts-in-the-Start-Menu--%28Wix-3.0%29-tf3407487.html#a9491889 Sent from the wix-users mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay
Re: [WiX-users] Intercepting SQL errors and displaying custom error
I think I understand the use of .wxl files and I've found the sql errors within the sca.wixlib. How do I identify the sql errors within my personal .wxl? Do I simply copy from section type=fragment to /section of the sql errors into my own .wxl, substitute my own error msgs, and then link it? Is it that easy? From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 14, 2007 4:46 PM To: Don Tasanasanta; wix-users@lists.sourceforge.net Subject: RE: Intercepting SQL errors and displaying custom error Yes. Provide a .wxl file for the localization identifiers defined the .wixlib. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Don Tasanasanta Sent: Wednesday, March 14, 2007 3:34 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Intercepting SQL errors and displaying custom error Is there a way to intercept SQL install errors and display my own custom error(s)? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Announcement: FragmentRefs are no longer supported in WiX 3.0
Hi All, I am send this email to let everyone using WiX 3.0 know that FragmentRef's will no longer be supported in WiX 3.0. After being deprecated for many months it is time to say goodbye. Every Fragment should have a child that is a referencable element using the supported Ref elements. Examples of these are ComponentRef, FeatureRef, PropertyRef, and CustomActionRef. If you are still using FragmentRef's in your authoring you can usually just replace the FragmentRef with the appropriate Ref element pertaining to the Fragment you are trying to reference. WixCop has been updated to error whenever it encounters a FragmentRef. Peter Marcu Software Development Engineer - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] FW: : Installing ETW MOF files
From: Ron Dar Ziv Sent: Thursday, March 15, 2007 10:51 PM To: Windows Installer XML Cc: Sukhdeep Sodhi Subject: : Installing ETW MOF files As part of our setup process we have to register ETW events specified in a MOF file, and had a couple of questions about this. 1. Are there any standard actions for registering a mof file using Wix? 2. Is it necessary to delete the events during un-install, especially since it should be fairly benign to have unused events lying around? Please add me to replies as I am not a member of this alias Thanks, Ron D. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users