Restarting install.ps1 to add additional packages results in Error
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:
- Install default commando VM via install.ps1
- Start install.ps1 again, chose default preset, press install
- See error
Screenshots
Version
- OS: Win10 22H2
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.
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.