Icon removed from compiled exe on network location?

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
ueberyak
Junior Coder
Posts: 31
Joined: Tue Sep 03, 2013 9:45 pm

Icon removed from compiled exe on network location?

Post by ueberyak » Tue Jun 27, 2017 10:43 pm

If I compile a macro into an executable and save it on my local drive, I get the exe with the icon I specified. If I copy/paste that .exe to a network location, the icon reverts back to the default icon.

When I try to generate the .exe directly to a network location, the .exe is generated but the custom icon is stripped out and I get the default one instead. Has anybody experienced anything like this?

I did poke around the forums but when your search includes "icon" you get a lot of static. Following is the code I'm using.

Code: Select all

// COMPILE_OPTS|C:\Users\MyUsername\Documents\SDC Workflow.exe|\\data\shares\SDC_Workflow\Production\Icons8-Ios7-Data-Workflow.ico|CONSOLE=0|INCLUDES=1||RUNTIMES=1|BMPS=1
//Set IGNORESPACES to 1 to force script interpreter to ignore spaces.
//If using IGNORESPACES quote strings in {" ... "}
//Let>IGNORESPACES=1
ExecuteFile>C:\Users\%User_Name%\Documents\SDC_Workflow\SDC_Workflow.accdb
Thanks,
Josh

User avatar
CyberCitizen
Automation Wizard
Posts: 721
Joined: Sun Jun 20, 2004 7:06 am
Location: Adelaide, South Australia

Re: Icon removed from compiled exe on network location?

Post by CyberCitizen » Wed Jun 28, 2017 4:37 am

I'm using the latest version of MS without issue, have you used this icon file previously?

Have you tried with another icon file?

Image
FIREFIGHTER

User avatar
Marcus Tettmar
Site Admin
Posts: 7380
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: Icon removed from compiled exe on network location?

Post by Marcus Tettmar » Wed Jun 28, 2017 9:27 am

Could just be Windows caching the icon from previously. If you drop the .exe in a different path does it show correctly? Promise you it won't be modifying the exe and somehow stripping the .exe out!! It's just Windows not showing you the correct one because it's cached it from previously (based on location).
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

ueberyak
Junior Coder
Posts: 31
Joined: Tue Sep 03, 2013 9:45 pm

Re: Icon removed from compiled exe on network location?

Post by ueberyak » Wed Jun 28, 2017 4:27 pm

Yeah, Marcus, you were right! Today the proper icon is there. It seemed far-fetched that the icon was somehow being stripped out.

All right, everybody relax. Everything's fine.
Thanks,
Josh

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts