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!

TMS
Posts: 2
Joined: Sat Aug 15, 2015 2:53 am

Windows 10: Shortcuts to BAT files won't run

In my MSI I have several BAT files, and Desktop shortcuts to them. When installed onto W7 and W8 machines, the shortcuts work fine. Under W10, they do not.

If I open a Command prompt on the W10 machine and run the BAT files, the BAT files work fine.

If I manually create a new desktop shortcut to the BAT files on the W10 machine, the new shortcuts work fine. It's only the shortcuts installed via the MSI that will not work.

I tried turning off UAC and also changed the PROPERTIES of the installed shortcuts to "Run As Administrator", but they still do not work.

I am using AdvInst 12.3.1 Build 64990
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Windows 10: Shortcuts to BAT files won't run

Hello and welcome to Advanced Installer forums,

I'm not sure why you have encountered the related behavior.
In order to further investigate this, can you please create a sample installer (with .aip project file and all necessary resources to build it) to test this on my machine and troubleshoot this further. This will help us greatly to provide a solution in the shortest possible time. Just create such a sample that accurately reproduces your error and send it to support at advancedinstaller dot com. Please make sure this sample project is buildable so we can build it and study the issue.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
TMS
Posts: 2
Joined: Sat Aug 15, 2015 2:53 am

Re: Windows 10: Shortcuts to BAT files won't run

Hi Dan,

Thanks for your reply. Upon further investigation, I discovered more information about the problem.

My MSI installs the software into a specific folder (not Program Files), let's call it C:\XYZ. Advanced Installer creates the shortcut with the "Start In" parameter set as "C:\XYZ\".

Under Windows 7 and 8.1, the shortcut works fine. However, in W10, the shortcut doesn't work, it throws off an error ".EXE not found". If I edit the shortcut after the MSI has run on W10 and change the "Start In" parameter to "C:\XYZ" (note the final backslash removed) it then works.

Not sure if this is an A.I. problem, or a W10 pathing problem, or is something I can work around by modifying the installer.

Return to “Common Problems”