We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Alain Sigrist
Posts: 6
Joined: Fri Mar 09, 2007 11:15 am

Can not move shortcuts after installation

Hi
Once my application is installed, "Windows installer" is very sensible to any change of the installed application.

For example:
I have file assotiations in my installed application.
All works fine, if the user click on an associated file, the associated program is launched and the file is opened. Ok

Now if for any reason, the user move the installed application shortcuts to another directory in the Program menu.
After that if we click on the same associated file, windows installer try to réinstall the application.

Is it a parameter to set in Ai, may be only for specific files that could avoid this to happen ?

Thanks
Alain
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Alain,

This is a normal and expected behavior of Windows Installer. An auto repair it's triggered if a key path for a component is missing. Windows Installer verify this when an advertised shortcuts, file associations, etc is executed.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Alain Sigrist
Posts: 6
Joined: Fri Mar 09, 2007 11:15 am

Ok but it should be a solution to avoid this for shortcuts because many peoples reorganize their shortcuts.

When I was installed AI for example, I moved the AI shortcuts from "Advanced Installer" to "Installer\Advanced Installer" and the auto repair was not triggered at any time.

Note:
I verified that my shortcuts are not set as advertized in AI but they are not.

Do you have an idea ?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Alain,

An auto repair it's triggered in case of a broken component (key path is missing). You can read more about this here:
http://msdn2.microsoft.com/en-us/library/aa371546.aspx

However I don't understand why the auto repair it's triggered when you move the shortcut. Can you reproduce this behavior on other computer?

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mrgenie
Posts: 7
Joined: Thu Nov 02, 2006 2:48 pm

people should be discouraged to remove stuff from their program menu! its not just advanced installer, but a MS issue, MS likes to keep things organized the way MS provides it to you..most programs don't let you move around the menu bars either!

if people like to tweak around in windows, they should know what they are doing, or leave it..

however, windows provides you with alot of tools, windows doesn't like to remove stuff, but offers you to COPY, CREATE and HIDE files/folders/shortcuts

solution: COPY the shortcut to the location you want to have the shortcuts and set the original shortcuts to "HIDDEN" status..although i'd disencourage people to move around with installed property...

btw, there are some registry settings in windows not to verify installed propery and never auto repair installations..im not sure where, but i read it a while ago in the msdn info center about it..im not sure if this is the issue with your installation..but you might wanna google it ..

hope this helps
Alain Sigrist
Posts: 6
Joined: Fri Mar 09, 2007 11:15 am

Yes Gheorghe I have reproduced this on 4 computer under Windows XP, 2K, Me, Vista.
Note that I also add somme registry entries like
HKEY_CLASSES_ROOT\[Extension ref]\shell\open\ddeexec
HKEY_CLASSES_ROOT\[Extension ref]\shell\open\ddeexec\Application
HKEY_CLASSES_ROOT\[Extension ref]\shell\open\ddeexec\Topic

because my application can open multiple files at the same time by this mean.

But ...
After some investigations, I found something.

The full filename of the software associated with the extension is defined under a key looking like this
HKEY_CLASSES_ROOT\[Extension ref]\shell\open\command

I found two values under this key:
The full filename of the associated software and this strange value:
command = `HliNyZpY=IlK,EmqYV^>T$p&dix?m=S63-?L%J@$ "%1"

I do not know what is the exact sens of this value but by deleting it I solve my problem.

Then my question is:
Is it possible to remove or not add this value during the install?
What could be the consequence if I remove it systematically?
Or maybe do you have an other suggestion to try?

Thank's Alain
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Alain,

In order to investigate the problem please send a small test project (AIP and MSI) reproducing this issue to support at advancedinstaller dot com.

Waiting for your reply.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Alain Sigrist
Posts: 6
Joined: Fri Mar 09, 2007 11:15 am

Ok
Many thanks, I send it now.

Best regard
Alain

Return to “Common Problems”