Hi, I created a installer package that will be installed in almost all platform (XP, XP x64, 2003, 2003 x64, Vista, and Vista x64). The problem is, I have a CA that works fine in XP, VISTA while in 2003 R2 x64, it shows an error message "Invalid root in registry key HKCU\...\InstallDir", but this CA works fine in other OS,
What seems to be the problem? My CA looks like: Function CreateShortInstallDir() On Error Resume Next Dim wsc, fso, installdir, val set wsc = CreateObject( "WScript.Shell" ) Set fso = CreateObject( "Scripting.FileSystemObject" ) ' Get InstallDir installdir = wsc.RegRead( "HKEY_CURRENT_USER\Software\Test\Resources\InstallDir" ) ' Check if exists otherwise create it If Not fso.FolderExists( installdir ) Then fso.CreateFolder( installdir ) ' Generate ShortPath Set val = fso.GetFolder( installdir ) ' Write ShortPath to registry wsc.RegWrite "HKEY_CURRENT_USER\Software\Test\Resources\InstallDirShort", val.ShortPath, "REG_SZ" End Function <CustomAction Id="CreateShortInstallDir" BinaryKey="CustomScripts" VBScriptCall="CreateShortInstallDir" Execute="deferred" Return="check" Impersonate="no" /> <Custom Action="CreateShortInstallDir" After="SetRegistryValues">Not Installed</Custom> Thanks in advance! Best Regards, Romeo -- View this message in context: http://n2.nabble.com/Windows-Server-2003-R2-x64-Error-tp1381866p1381866.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users