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?
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 - 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
Re: [WiX-users] How to update an url shortcut for upgrade install?
Qu, Li wrote: I thought the .url file itself is the shortcut. Why the content and shortcut are inconsistent? Sorry, no idea. It's possible they're cached, I suppose. Try using a browser other than Internet Explorer as the default. Mozilla Firefox, for example, supports .url files but doesn't update them, as IE does. Maybe it won't cache them either...? -- sig://boB 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] 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 - 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