I just checked the dotNetInstallerLib/InstallerSession.cpp code file, and for some reason you've setup the app to enable restart using this registry key path:
This requires Administrator privileges, and I'm creating an installer without Admin rights.
Instead you could just use this path:
I've been trying to re-compile the code with this fix, however I'm unfortunately not able to due the missing dependencies which would take me quite some time to setup.
Is there any chance you (or anyone in this community) could re-compile dotNetInstaller with the above small fix?
Here is the only two functions in the file that has been updated:
void InstallerSession::EnableRunOnReboot(const std::wstring& add)
std::wstring reboot_cmd = GetRebootCmd(add);
std::wstring filename = DVLib::GetFileNameW(DVLib::GetModuleFileNameW());
LOG(L"Writing HKEY_CURRENT_USER\\" << REGISTRY_CURRENTVERSION_RUN << L"\\" << filename << L": " << reboot_cmd);
std::wstring name = DVLib::GetFileNameW(DVLib::GetModuleFileNameW());
if (DVLib::RegistryValueExists(HKEY_CURRENT_USER, REGISTRY_CURRENTVERSION_RUN, name))
DVLib::RegistryDeleteValue(HKEY_CURRENT_USER, REGISTRY_CURRENTVERSION_RUN, name);