NovAtel
Posts: 13
Joined: Mon Mar 18, 2019 9:58 pm

Failed to localize one or more elements in the EXE bootstrapper

When I build my solution it gets about 70% through and then I get the error message "Failed to localize one or more elements in the EXE bootstrapper. Make sure that [Filepath] is not being used by another process and the elements used by the bootstrapper can be accessed. GetLastError() returned: The system cannot open the device or file specified."

Screenshot attached.
AI.jpg
AI.jpg (970.13 KiB) Viewed 26959 times


I've looked at a couple other forum posts but their solutions did not work:
viewtopic.php?f=2&t=10783#p29432
viewtopic.php?t=29088

I am running version 15.9 and my colleague is using 16.1 and we are experiencing it on both version.
I have tried rebooting my machine and attempted to build it with no other programs running and I still got this error. It seems like 90% of the time we get this error but every now and then it randomly works.
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

Hi,

This problem may also appear if an antivirus software or another application blocks the installer build process. Can you try to disable the antivirus from your machine and see if the problem persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbrown@nacintl.com
Posts: 6
Joined: Wed Jun 10, 2015 1:03 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

I’m receiving the same exact error message. The strange thing is that this error message just started to appear. We are slowly upgrading to the latest version, but version 14.8 has been working fine for a while. The project file has not change. I have already tried every suggestion related to and similar to this issue. I installed the latest version as well and that did not fix the issue.

Failed to localize one or more elements in the EXE bootstrapper. Make sure that [C:\Applications\XXXXX-20210202\NAC Reporter\XXXXX\Branch 2019\XXXXX Setup\XXXXX 2019.1.20\XXXXX 2019.1.20.exe] is not being used by another process and the elements used by the bootstrapper can be accessed.
GetLastError() returned: The system cannot open the device or file specified.

Advanced Installer 17.9 build c2e880e8
*** Stack Trace (x86) ***

[0x76afa842] RaiseException()
[0x02685dba] -----
[0x016ae28d] -----
[0x016ad8d5] -----
[0x016ad53d] -----
[0x015edeef] -----
[0x015f3c87] -----
[0x014c7e45] -----
[0x014c7d31] -----
[0x015ea376] -----
[0x0174abab] -----
[0x012c2d17] -----
[0x011871ee] -----
[0x00ffb1ec] -----
[0x01e2e798] -----
[0x772653fe] RtlAllocateHeap()
[0x76ae222b] FlsGetValue()
[0x026888f2] -----
[0x02685349] -----
[0x010122de] -----
[0x768ffa29] BaseThreadInitThunk()
[0x772875f4] RtlGetAppContainerNamedObjectPath()
[0x772875c4] RtlGetAppContainerNamedObjectPath()
[0x00d60000] MODULE_BASE_ADDRESS
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

Hi,

This is, indeed, strange if you tried all the methods, but you could not get rid of this error. Just to be sure, did you try all the below options?
- restart the machine
- make sure the "XXXXX 2019.1.20.exe" file is not kept in use by another process
- disable the antivirus before the build process
- make sure the output folder is not open during the build process
- make sure the output folder does not require special writing permissions
- go in the "Builds" page of your project and change the output folder to another drive (e.g. D:\MyFolder)

Just let me know if any of the above solutions worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
andrea.parisi
Posts: 5
Joined: Mon Oct 12, 2015 8:19 am

Re: Failed to localize one or more elements in the EXE bootstrapper

We have the same problem from about 10 days on multiple seats with version 15.7 (1 Enterprise and 2 Professional).
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

Hello,

Did you try all the options discussed above and this still doesn't work for you?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
andrea.parisi
Posts: 5
Joined: Mon Oct 12, 2015 8:19 am

Re: Failed to localize one or more elements in the EXE bootstrapper

Hello,

I tried all options. I can build only on network disks, but also suspending the antivirus (SOPHOS) I can't build locally.
Furthermore if I build from local drive a setup with updater I receive error on icon and updater.exe.

Thank you,
Andrea
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

Hello Andrea,

Do you encounter this problem on multiple machines? Can you check if the Event Viewer shows any information related to this? Also, can you send me some screenshots with the errors to support at advancedinstaller dot com?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
andrea.parisi
Posts: 5
Joined: Mon Oct 12, 2015 8:19 am

Re: Failed to localize one or more elements in the EXE bootstrapper

Hi Eusebiu,

I sent to you an email with screenshots and the setup used for test. I confirm, we encounter this problem on multiple 4 machines and some virtual machines used for test. We use Windows 10 with all (20H2, 1909 and 2004) with the latest update. No event tracked in event viewer.
Until a couple of weeks ago there were no problems.

Regards,
Andrea
Eusebiu
Posts: 4931
Joined: Wed Nov 14, 2012 2:04 pm

Re: Failed to localize one or more elements in the EXE bootstrapper

Hello Andrea,
I tried all options. I can build only on network disks, but also suspending the antivirus (SOPHOS) I can't build locally.
Do you perform the build on a network drive? If so, are you sure that the Advanced Installer process has enough permissions to write at that location?
Furthermore if I build from local drive a setup with updater I receive error on icon and updater.exe.
Can you please send me a screenshot with this error, as well?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”