commando-vm icon indicating copy to clipboard operation
commando-vm copied to clipboard

Restarting install.ps1 to add additional packages results in Error

Open xplt-artur opened this issue 2 years ago • 1 comments

Describe the bug and expected behavior After the initial install of lets say the "Default" package list, if I were to restart install.ps1 because I want to add additional packages, I get the following error

[+] Settings updated, beginning install. Please wait for a popup letting you know the installation is complete! [+] Setting Boxstarter config [!] Error: Failed to install profile: The property 'RebootOk' cannot be found on this object. Verify that the property exists and can be set.

Which seems to be related to https://github.com/chocolatey/boxstarter/issues/380 and can be fixed by adding Import-Module Boxstarter.Chocolatey

To Reproduce Steps to reproduce the behavior:

  1. Install default commando VM via install.ps1
  2. Start install.ps1 again, chose default preset, press install
  3. See error

Screenshots image

Version

  • OS: Win10 22H2

xplt-artur avatar Nov 09 '23 21:11 xplt-artur

edit install.ps1 and add the followingf information in the head of the script:

Import-Module Boxstarter.Chocolatey
$BoxStarter.RebootOk=$true

Now if you install it will work.

sh0ra1t avatar Nov 13 '23 22:11 sh0ra1t

Thanks @sh0ra1t! We're hoping this has been fixed with a couple changes made recently. not sure why the flag for noReboots would be set, but good to see a workaround.

Menn1s avatar May 09 '24 06:05 Menn1s