Create agent not installing

I am having no joy installing the create agent. I keep getting an error message

There has been an error.
Error trying to install file: destination S(windows_folder_startup)
resolved to an empty value
The application will exit now.

I have tried opening the installer using admin privileges but constantly getting this error!:rage::rage:
Can anyone offer any thoughts?

1 Like

Hi @nickorob. Which version of Windows are you using (e.g., "Windows 11")?

Windows 10

It seems that something goes wrong when the InstallBuilder installer used by Arduino Create Agent queries Windows for the location of the Windows "Startup" folder. My hypothesis is that this might be caused by some misconfiguration of your Windows installation.

I'm going to ask you to check the configuration of this folder in the Windows registry.


:warning: Although the instructions below are safe in that they do not involve making any changes, please be very careful as an unintentional change to the Windows Registry could put your system into a non-functional state.

It is recommended to create a backup before starting:

https://support.microsoft.com/topic/how-to-back-up-and-restore-the-registry-in-windows-855140ad-e318-2a13-2829-d428a2ab0692


  1. Right click on the Windows "Start" button.
    A context menu will open.
  2. Select "Search" from the menu.
    The search field will be selected.
  3. Type registry editor in the search field.
  4. Select the "Registry Editor" app from the search results.
    The "Registry Editor" window will open.
  5. Right click on the field below the menu bar in the "Registry Editor" window.
    The field I am referring to will contain some text like Computer.
    A context menu will open.
  6. Select "Select All" from the context menu.
    All text in the field will be selected.
  7. Replace the text in the field with the following:
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    
  8. Press the Enter key.
  9. Right click on the item with the name "Startup" in the panel on the right side of the "Registry Editor" window.
    A context menu will open.
  10. Select "Modify..." from the context menu.
    The "Edit String" dialog will open.
  11. Examine the path shown in the "Value data" field of the "Edit String" dialog.
    • Does the path have the expected format?:
      C:\Users\<username>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
      
      (where <username> is your Windows username)
    • Is the username in the path correct?
  12. Start Windows "File Explorer".
  13. Select "View" from the toolbar at the top of the File Explorer window.
  14. Check the box next to "☐ Hidden items" if it is not already checked.
  15. Navigate to the path that was shown in "Value data" field of the "Edit String" dialog of the Registry Editor.
    • Does the folder at that path exist?
  16. Switch back to the "Registry Editor" window.
  17. Click the "Cancel" button in the "Edit String" dialog.
    The "Edit String" dialog will close.
  18. Select File > Exit" from the Registry Editor menus.
    The "Registry Editor" window will close.

Please reply here on the forum thread to let us know whether you discovered any problems with the configuration of the Windows "Startup" folder while performing the instructions above.

Hopefully this information might allow us to understand the cause of the installer error and identify a potential solution.

Thank you I will give it a go :+1:

Preferred pronouns; he, him, his

Nicko Robertson BVet Med MRCVS
Stables Equine Practice
Wookey
BA5 1NH

When I get to edit string dialog,
“The value data” isn’t as you show but %USERPROFILE%\appdata….

Preferred pronouns; he, him, his

Nicko Robertson BVet Med MRCVS
Stables Equine Practice
Wookey
BA5 1NH

It is odd that your registry is different from mine since I checked with a fresh installation of Windows 10. But I think the two are functionally equivalent so this should be OK actually.

I did a bit more research into this subject and found there is another registry key that overrides the Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders key I asked you to check in my previous reply. So I'm going to ask you to check the value of that key. The procedure is identical with the exception of the different key name at step (7), but I'll go ahead and provide the full set of instructions for the sake of clarity:

  1. Right click on the Windows "Start" button.
    A context menu will open.
  2. Select "Search" from the menu.
    The search field will be selected.
  3. Type registry editor in the search field.
  4. Select the "Registry Editor" app from the search results.
    The "Registry Editor" window will open.
  5. Right click on the field below the menu bar in the "Registry Editor" window.
    The field I am referring to will contain some text like Computer.
    A context menu will open.
  6. Select "Select All" from the context menu.
    All text in the field will be selected.
  7. Replace the text in the field with the following:
    Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    
  8. Press the Enter key.
  9. Right click on the item with the name "Startup" in the panel on the right side of the "Registry Editor" window.
    A context menu will open.
  10. Select "Modify..." from the context menu.
    The "Edit String" dialog will open.
  11. Examine the path shown in the "Value data" field of the "Edit String" dialog.
    • Does the path have the expected format?:
      %USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
      
  12. Start Windows "File Explorer".
  13. Select "View" from the toolbar at the top of the File Explorer window.
  14. Check the box next to "☐ Hidden items" if it is not already checked.
  15. Navigate to the path that was shown in "Value data" field of the "Edit String" dialog of the Registry Editor, replacing %USERPROFILE% with C:\Users\<username> (where <username> is your Windows username).
    • Does the folder at that path exist?
  16. Switch back to the "Registry Editor" window.
  17. Click the "Cancel" button in the "Edit String" dialog.
    The "Edit String" dialog will close.
  18. Select File > Exit" from the Registry Editor menus.
    The "Registry Editor" window will close.

Please reply here on the forum thread to let us know whether you discovered any problems with the configuration of the Windows "Startup" folder while performing the instructions above.

Hopefully this information might allow us to understand the cause of the installer error and identify a potential solution.

Hi ptillisch

Right click on the item with the name "Startup" in the panel on the right side of the "Registry Editor" window.

I am not seeing the Startup you are referring to.

Does the folder at that path exist?

%APPDATA%\Roaming\Microsoft\Windows\Start Menu\Programs

No. The "Startup" folder didn't exist for me. Creating it manually fixed the problem and I was successfully able to install the ArduinoCreateAgent afterwards.

Thanks for your help, but - the ArduinoCreateAgent asks for admin access before opening, why doesn't it create the Startup folder automatically instead of crashing?

Can the developers fix this?

You are welcome. I'm glad it is working now. Great job on finding the problem and solving it!

The Arduino Create Agent are tracking the task of fixing this problem (or at least improving the user experience when it happens if that is not possible e.g., the fault is in the 3rd party InstallBuilder installer framework, which Arduino does not maintain) here:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.