Silent/Unattended Installation
1. Product versions:
- OS and Version: Windows 2016
- TM1/PA Version: N/A
- Pulse Version 6.0.3
- Browser N/A
- SQL Server Version (if applicable): N/A
3. Describe the bug
Installing with silent mode fails to create some of the required registry keys. Running a silent install appears to install successfully however PulseAppServer service doesn't start. With further inspection I can see the following values missing from the registry:
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\PulseAppServer\Parameters\Start\Mode
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\PulseAppServer\Parameters\Stop\Mode
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\PulseAppServer\Parameters\Java\JvmMs
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\PulseAppServer\Parameters\Java\JvmMx
- HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\PulseAppServer\Parameters\Java\Options (This one exists but has fewer parameters than a working installation)
Note, the PulseAppService services starts as expected after manually setting these values and restarting.
4. To Reproduce
Install with the following from Command Prompt or PowerShell: ".\Pulse.6.0.3.exe /S"
7. Additional context
In the .nsi file, InstallApplicationServerAsService function, there are 3 ExecWait commands in the finish section. Everything from the middle line is missing from the registry on my test install so my guess is the $MemoryMax variable isn’t getting a value when running in silent mode and therefore causing that line to fail. The value is currently being set on a ‘page’ and I suspect not getting a value because the page is never loaded/shown in silent mode.
Can you try setting a default value for all of the variables immediately after they get defined or in the .onInit function? I think there’s a good chance that will fix it.
Thanks, Tim