[WiX-users] Again, Odd failure of XmlFile in wix-2.0.4221.0
Hello, I'm having exactly the same problem as described in the email titled [Wix-user] Odd failure of XmlFile in wix-2.0.4221.0, but I don't see the solution for that problem being posted. I have to post this question again, and hope I'll get help from somebody. The installation failed at the ExecXmlFil custom action. In the install log I do see a second process (PID 1448) trying to open the database.xml file and failed. What I don't understand is why there is a second process? How to resolve this problem? This problem happened only on one of our customers' machine. It never occurred on the machines we did test on. The related install log is attached. Thanks, Li MSI (s) (F8:68) [18:11:19:121]: Created Custom Action Server with PID 1292 (0x50C). MSI (s) (F8:38) [18:11:19:137]: Running as a service. MSI (s) (F8:38) [18:11:19:152]: Hello, I'm your 32bit Impersonated custom action server. .. MSI (s) (F8:00) [18:11:26:136]: Executing op: ActionStart(Name=ExecXmlFile,,) Action 18:11:26: ExecXmlFile. MSI (s) (F8:00) [18:11:26:136]: Executing op: CustomActionSchedule(Action=ExecXmlFile,ActionType=3073,Source=BinaryData,Target=ExecXmlFile,CustomActionData=1C:\Program Files\Avistar\System Central\conf\server.xml2//Server/Service/Connectorport802//Server/Service/ConnectorredirectPort4432//Server/Service/[EMAIL PROTECTED]'https']port4431C:\Program Files\Avistar\System Central\conf\avistar_database.xml2//properties/[EMAIL PROTECTED]'database.host']localhost2//properties/[EMAIL PROTECTED]'database.port']14332//properties/[EMAIL PROTECTED]'database.dbname']CALLREPORTING2//properties/[EMAIL PROTECTED]'database.user']scops2//properties/[EMAIL PROTECTED]'database.password']avistar1) MSI (s) (F8:FC) [18:11:26:151]: Invoking remote custom action. DLL: C:\WINNT\Installer\MSI9.tmp, Entrypoint: ExecXmlFile MSI (s) (F8:68) [18:11:26:151]: Generating random cookie. MSI (s) (F8:68) [18:11:26:151]: Created Custom Action Server with PID 1448 (0x5A8). MSI (s) (F8:38) [18:11:26:167]: Running as a service. MSI (s) (F8:38) [18:11:26:167]: Hello, I'm your 32bit Elevated custom action server. ExecXmlFile: Error 0x8007006e: failed to load XML file: C:\Program Files\Avistar\System Central\conf\avistar_database.xml Error 25531. Failed to open XML file C:\Program Files\Avistar\System Central\conf\avistar_database.xml, system error: -2147024786 MSI (s) (F8!78) [18:11:53:491]: Product: Avistar System Central 8.8 -- Error 25531. Failed to open XML file C:\Program Files\Avistar\System Central\conf\avistar_database.xml, system error: -2147024786 From: Qu, Li Sent: Wednesday, November 29, 2006 9:33 PM To: 'wix-users@lists.sourceforge.net' Subject: How to update an url shortcut for upgrade install? Hello, I have the following code to create an URL shortcut on Desktop: IniFile Id=launchFromDesktop Action= addLine Directory=DesktopFolder Name=MyHome.url Key=URL Section=InternetShortcut Value=http://localhost:[HTTP_PORT]/ This works well for a new install. But when I do an upgrade install(major upgrade), the URL keeps using the old port. For example, the first time install 8080 was entered as the http port. Perform upgrade install, and enter 6060 as the http port. The registry and configuration file are all updated correctly, but the shortcut was still http://localhost:8080 http://localhost:8080/ . The following is related section from the install log file. From there I don't see how the old port gets used again. MSI (s) (68:D4) [16:25:05:184]: Executing op: ActionStart(Name=WriteIniValues,Description=Writing INI files values,Template=File: [1], Section: [2], Key: [3], Value: [4]) Action 16:25:05: WriteIniValues. Writing INI files values MSI (s) (68:D4) [16:25:05:184]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=13200) MSI (s) (68:D4) [16:25:05:184]: Executing op: IniFilePath(File=MyHome.url,Folder=C:\Documents and Settings\All Users\Desktop\) MSI (s) (68:D4) [16:25:05:184]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://localhost:6060,Mode=0) WriteIniValues: File: MyHome.url, Section: InternetShortcut, Key: URL, Value: http://localhost:6060 MSI (s) (68:D4) [16:25:05:184]: Executing op: ActionStart(Name=InstallServices,Description=Installing new services,Template=Service: [2]) I'm really appreciated if somebody can point me out what I'm doing wrong. Thanks. Li - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing
Re: [WiX-users] How to update an url shortcut for upgrade install?
Thank you for your replay. Actually I tried the following: do RemoveExistingProducts after InstallFinalize, and do it after InstallValidate. But the URL is not updated in either case. Is there anything else I should try? Li From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 10:46 PM To: Qu, Li Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to update an url shortcut for upgrade install? Qu, Li wrote: This works well for a new install. But when I do an upgrade install(major upgrade), the URL keeps using the old port. One possibility: Depending on how you configured RemoveExistingProducts, the installer might not be installing the component associated with the .ini file. -- sig://boB http://bobs.org http://bobs.org - 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 update an url shortcut for upgrade install?
This seems not an upgrade specific problem. I did uninstall then new install using a different port, and the shortcut created by the new install picked up the port used previously. Something really wired is that the content of the .url file doesn't match the shortcut. Open the .url file it has: [InternetShortcut] URL=http://localhost:6060 But open up the Properties of the shortcut, the URL field is http://localhost:8080 http://localhost:8080/ . I thought the .url file itself is the shortcut. Why the content and shortcut are inconsistent? Bob, When you say MSI won't otherwise remove the file., what exactly does it mean? Because I do see the shortcut got removed from the desktop during uninstall. For the upgrade install, the shortcut gets removed and recreated. Is there anywhere else the url information gets saved? I tried you suggestion, but it seem only advanced the shortcut from the oldest port to older port, still not the current. In all the cases, the content of the .url file are always updated. It seems the shortcuts being remembered somehow, but how? How can I clean them up? Thanks, Li From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Thursday, November 30, 2006 10:05 AM To: Qu, Li Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] How to update an url shortcut for upgrade install? Qu, Li wrote: Actually I tried the following: do RemoveExistingProducts after InstallFinalize, and do it after InstallValidate. But the URL is not updated in either case. Is there anything else I should try? Try adding a RemoveFile element to remove the .url file on uninstall. MSI won't otherwise remove the file. -- sig://boB http://bobs.org http://bobs.org - 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 update an url shortcut for upgrade install?
Hello, I have the following code to create an URL shortcut on Desktop: IniFile Id=launchFromDesktop Action= addLine Directory=DesktopFolder Name=MyHome.url Key=URL Section=InternetShortcut Value=http://localhost:[HTTP_PORT]/ This works well for a new install. But when I do an upgrade install(major upgrade), the URL keeps using the old port. For example, the first time install 8080 was entered as the http port. Perform upgrade install, and enter 6060 as the http port. The registry and configuration file are all updated correctly, but the shortcut was still http://localhost:8080 http://localhost:8080/ . The following is related section from the install log file. From there I don't see how the old port gets used again. MSI (s) (68:D4) [16:25:05:184]: Executing op: ActionStart(Name=WriteIniValues,Description=Writing INI files values,Template=File: [1], Section: [2], Key: [3], Value: [4]) Action 16:25:05: WriteIniValues. Writing INI files values MSI (s) (68:D4) [16:25:05:184]: Executing op: ProgressTotal(Total=2,Type=1,ByteEquivalent=13200) MSI (s) (68:D4) [16:25:05:184]: Executing op: IniFilePath(File=MyHome.url,Folder=C:\Documents and Settings\All Users\Desktop\) MSI (s) (68:D4) [16:25:05:184]: Executing op: IniWriteRemoveValue(Section=InternetShortcut,Key=URL,Value=http://localh ost:6060,Mode=0) WriteIniValues: File: MyHome.url, Section: InternetShortcut, Key: URL, Value: http://localhost:6060 MSI (s) (68:D4) [16:25:05:184]: Executing op: ActionStart(Name=InstallServices,Description=Installing new services,Template=Service: [2]) I'm really appreciated if somebody can point me out what I'm doing wrong. Thanks. Li - 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] No text on the Add/Remove UI
Hi, I haven't got any response for my question. I couldn't be the only person who encountered this problem since the samples are having same problem. WiX people, do you see any text displayed on the UI when you do uninstall? Could you give me some explanation? Thanks! Li From: Qu, Li Sent: Tuesday, November 14, 2006 2:41 PM To: 'wix-users@lists.sourceforge.net' Subject: No text on the Add/Remove UI Hello, When uninstall an application from the Add/Remove Program, on the uninstall UI besides a icon, a progress bar, and the Cancel button there is also a text message displayed on the top, like Please wait while Windows configure ... . But when I remove the application I created by WiX, there is no text message displayed on the UI (actually there is some message but it disappeared immediately after the UI is displayed). I tried the samples came with the WiX Tutorial, they all do the same. I tried to uninstall many other applications, and they all have similar messages displayed on the UI. The installation I create using the Wise for Windows Installer also does the same. I thought it was default Windows Installer UI. But it seems not. Dose anyone know why there is no text? How to added it? I didn't want to add progress text, just a static text to tell the user to wait. Thanks in advance. Li - 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] No text on the Add/Remove UI
Hello, When uninstall an application from the Add/Remove Program, on the uninstall UI besides a icon, a progress bar, and the Cancel button there is also a text message displayed on the top, like Please wait while Windows configure ... . But when I remove the application I created by WiX, there is no text message displayed on the UI (actually there is some message but it disappeared immediately after the UI is displayed). I tried the samples came with the WiX Tutorial, they all do the same. I tried to uninstall many other applications, and they all have similar messages displayed on the UI. The installation I create using the Wise for Windows Installer also does the same. I thought it was default Windows Installer UI. But it seems not. Dose anyone know why there is no text? How to added it? I didn't want to add progress text, just a static text to tell the user to wait. Thanks in advance. Li - 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 Browse files
Hi, I know how to browse folders using WiX, but I couldnt find any information on how to browse files. Does anybody know how to browse files using WiX? Thanks in advance. Li - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Question on Conditional Component and Repair
Hello, The installer Im working on will modify one of the installed configuration file during the installation. The modification is done by using XmlFile elements with the user input parameters. What Im struggling on is try to not touch this file during Repair. But with my current implementation during Repair the file will be over written with the default values. Ive tried to add condition NOT Installed or REINSTALLMODEecmus to the component to prevent the file from being written, but none of them works. The sample code is attached at the end of the message. What is the right way doing this? I used conditions for custom actions, and they worked as expected. I dont understand how conditions work for components. Can someone help me with this? Thanks in advance. Li DirectoryRef Id=myapp Component Id=DatabaseSettings Guid=344221B6-EBFF-4ce8-9DF3-C49E1AF451A2 Condition![CDATA[REINSTALLMODEecmus]]/Condition File Id=mydatabase Name=mydb.xml LongName=mydatabase.xml DiskId=1 Source=..\..\app\mydatabase.xml/ XmlFile Id=dbHost File=[INSTALLDIR]myapp\mydatabase.xml Action=setValue Value=[DB_SERVER] ElementPath=//properties/[EMAIL PROTECTED]'database.host'[\]] Sequence=1 / XmlFile Id=dbPort File=[INSTALLDIR]myapp\mydatabase.xml Action=setValue Value=[DB_SERVER_PORT] ElementPath=//properties/[EMAIL PROTECTED]'database.port'[\]] Sequence=2 / XmlFile Id=dbName File=[INSTALLDIR]myapp\mydatabase.xml Action=setValue Value=[DB_NAME] ElementPath=//properties/[EMAIL PROTECTED]'database.dbname'[\]] Sequence=3 / /Component /DirectoryRef - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users