Why don't you use the BrowseDlg that comes with wix? -----Original Message----- From: Dale Quigg [mailto:da...@messagegate.com] Sent: Thursday, December 18, 2008 4:03 PM To: 'wix-users@lists.sourceforge.net' Subject: [WiX-users] DTF - Using Shell32.dll
Hi, I'm using DTF to create a custom action to show an Open Folder dialog in my UI. I'm using the code I found here; http://todayslearnings.blogspot.com/2008/08/how-to-get-folder-browser-di alog-in-c.html I can build the project in VisualStudio (after adding a reference to Shell32.dll), but when I try to build on the command line I get errors like; build: [exec] Current OS is Windows XP [exec] Executing 'C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe' with arguments: [exec] '/target:library' [exec] '/r:C:\(snip)\WiX\IMPORT\WiXv3/sdk/Microsoft.Deployment.WindowsInstaller .dll' [exec] '/out:C:\(snip)\WiX\Custom_Actions\Categorization\Categorization_CA.dll' [exec] 'Categorization_CA.cs' [exec] [exec] The ' characters around the executable and arguments are [exec] not part of the command. [exec] Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.1 [exec] for Microsoft (R) .NET Framework version 3.5 [exec] Copyright (C) Microsoft Corporation. All rights reserved. [exec] Categorization_CA.cs(633,17): error CS0246: The type or namespace name 'Shell32' could not be found (are you missing a using directive or an assembly reference?) I added a reference on my command line, with; /r:C:\Windows\System32\Shell32.dll but this gives a different error; [exec] fatal error CS0009: Metadata file 'c:\WINDOWS\system32\shell32.dll' could not be opened -- 'An attempt was made to load a program with an incorrect format. ' Any tips on what I need to successfully compile? Thanks, Dale Dale Quigg ||| Senior Build / Configuration / Installation Engineer MessageGate ||| Enterprise Email Governance ------------------------------------------------------------------------ ------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix. com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users