Dear Jeroen,
... please excuse me, but seems that I forgot to test your package.
Let me see.
Regards
prevent %TEMP% replacement
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: prevent %TEMP% replacement
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: prevent %TEMP% replacement
Dear Jeroen,
I have just tested your project ... but it doen't contain any %TEMP% definition with the uninstall shortcut.
Anyway, I have added two additional shortcuts to your original project as follow;
1# ShortCut1 - uses %TEMP%.
2# ShortCut2 - uses a custom variable ENV_SYSTEM_TMP that holds the value of the "TMP" System Environment variable from; "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment".
These are my results!
You find attached a copy of your edited project.
Regards
I have just tested your project ... but it doen't contain any %TEMP% definition with the uninstall shortcut.
Anyway, I have added two additional shortcuts to your original project as follow;
1# ShortCut1 - uses %TEMP%.
2# ShortCut2 - uses a custom variable ENV_SYSTEM_TMP that holds the value of the "TMP" System Environment variable from; "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment".
These are my results!
You find attached a copy of your edited project.
Regards
- Attachments
-
- InputTest.zip
- (1.79 MiB) Downloaded 389 times
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: prevent %TEMP% replacement
Dear Francesco,
You're correct when you enter %TEMP% into the "shortcut to File" in IA (see IA_shortcut_1.png), but when you put the same value in the "Startup In Folder" the value gets replaced (see shortcut1.png).
Best regards,
Jeroen
You're correct when you enter %TEMP% into the "shortcut to File" in IA (see IA_shortcut_1.png), but when you put the same value in the "Startup In Folder" the value gets replaced (see shortcut1.png).
Best regards,
Jeroen
- Attachments
-
- shortcut1.png (13.48 KiB) Viewed 6234 times
-
- IA_Shortcut_1.png (16.09 KiB) Viewed 6234 times
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: prevent %TEMP% replacement
Dear Jerome,
... at this point I am not sure to follow you anymore.
Undisputed that putting the same value in the "Startup In Folder" this gets replaced ... if I am not wrong, your target is to have this pointing to the SYSTEM TMP variable, why don't you use "%SystemRoot%\TEMP" instead?
Regards
... at this point I am not sure to follow you anymore.
Undisputed that putting the same value in the "Startup In Folder" this gets replaced ... if I am not wrong, your target is to have this pointing to the SYSTEM TMP variable, why don't you use "%SystemRoot%\TEMP" instead?
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: prevent %TEMP% replacement
My target is to prevent %TEMP% being replaced in the "Start in Folder" section.
Using %SystemRoot%\TEMP is not an option for us.
Jeroen
Using %SystemRoot%\TEMP is not an option for us.
Jeroen
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: prevent %TEMP% replacement
Dear Jeroen,
Unfortunately, the MSI engine replaces that value and using the MSI engine, it is not possible to change this behavior ( ...just tested).
However, if you use the InstallAware Native Engine this seems to not occur ( ...just tested even in this case).
Hope this helps you.
Regards.
Unfortunately, the MSI engine replaces that value and using the MSI engine, it is not possible to change this behavior ( ...just tested).
However, if you use the InstallAware Native Engine this seems to not occur ( ...just tested even in this case).
Hope this helps you.
Regards.
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: prevent %TEMP% replacement
So there is no way to prevent the replacement as described in: http://msdn.microsoft.com/en-us/library ... 85%29.aspx ?
if not, is there an option to do a post file modify (modify the shortcut), or does this mess up the uninstall?
if not, is there an option to do a post file modify (modify the shortcut), or does this mess up the uninstall?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: prevent %TEMP% replacement
Dear Jeroen,
As I told you previously, it seems not possible via Windows Installer Engine.
You should use the Shell Links API ... I never tried, but I believe that it is possible to modify an existing shortcut using those API.
http://msdn.microsoft.com/en-us/library/aa969393.aspx
Regards
So there is no way to prevent the replacement as described in: http://msdn.microsoft.com/en-us/library ... 85%29.aspx ?
As I told you previously, it seems not possible via Windows Installer Engine.
if not, is there an option to do a post file modify (modify the shortcut), or does this mess up the uninstall?
You should use the Shell Links API ... I never tried, but I believe that it is possible to modify an existing shortcut using those API.
http://msdn.microsoft.com/en-us/library/aa969393.aspx
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: JohnGaver, vaibhavopkey and 85 guests