Shortcuts disappear in AI if Application folder is empty - Advanced Installer Community
Rosacek
Posts: 9
Joined: Thu Feb 05, 2015 1:41 pm

Shortcuts disappear in AI if Application folder is empty

Hi,
I found annoying feature in AI 11.8.

When I open AI project in order to modify some setting, and the "Application Folder" is empty at that time (because I deleted content of that sync folder in Windows), then all Shortcuts set in "Files and Folders" silently disappear :( I do not notice that and later build installer and then I wonder why desktop icons are not created. And need to create all shortcuts again in AI :(

Is it possible to keep Shortcuts even target files do not exist in Application Folder?
Or course, when I build installer, I build my .NET project first and sync folder content is OK.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcuts disappear in AI if Application folder is empty

Hello,

Please keep in mind this is the normal behavior when you are using our Synchronized Folders support. All regular shortcuts (shortcuts to installed files) are bound with the components of their target files. Also, when a synchronized file is deleted from disk its component will be removed from your project, therefore the file alongside its shortcut will be removed from the project.

As a workaround, in order to achieve what you want you can create your shortcuts as shortcuts to external files.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rosacek
Posts: 9
Joined: Thu Feb 05, 2015 1:41 pm

Re: Shortcuts disappear in AI if Application folder is empty

I understand.

But on the other hand AI is changing project and I do not know about that. This is dangerous.

If you cannot find better solution then pls. should warning windows with message that shurtcuts and Features were changed due to missing files in Sync folder.
Then we are aware of that and can close AI project without saving any change, build/publish application and then open AI again, this time all data in sync folder are available and everyone is happy.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcuts disappear in AI if Application folder is empty

Hello,

Please keep in mind that Advanced Installer is displaying a warning when synchronized files are missing from disk. Right when you open the project, all missing files are displayed in the "Notifications" pane as you can see in the following screenshot.
screenshot.jpg
screenshot.jpg (180.48 KiB) Viewed 4405 times
Also, the changes are not saved in the project unless you manually save the project.

If there is anything we can help you with just let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Rosacek
Posts: 9
Joined: Thu Feb 05, 2015 1:41 pm

Re: Shortcuts disappear in AI if Application folder is empty

Yes, just as notification.
My point was this is not enough and I proposed to show some warning window.
Notification means "for information only", also the icon is "i".¨
But is some file is missing in sync folder, which is used as shortcut or in features, then I expect to see really warning mesaage (yellow triangle or even error icon)

This is just my proposal what could be impoved to make our life easier. We work under time pressure and the it is easy to not recognize notification. Thats why I proposed this.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Shortcuts disappear in AI if Application folder is empty

Hello,

Maybe we'll consider your proposal in a future version of Advanced Installer, but for the moment as yours is the only request this has a low priority. Thank you for your suggestion.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”