Good evening Kevin,
********* EDIT 2020-01-26 *********************
I may have an even simpler solution (who doesn't use powershell, so no need to touch UAC). A simple batch that you but in your startup folder
----------------
@echo off
echo Waiting a bit before starting Hauptwerk
Timeout 10
C:\Program Files\Hauptwerk Virtual Pipe Organ\Hauptwerk.exe
---------------
if the timeout value (10 in this example) is not long enough (Hauptwerk generate an error), then simply edit to increase its value until you reach a level where Hauptwerk starts correctly each and every time.
You may want to simply use this very simple solution...
************** END EDIT **********************
Here is a solution/script to start Hauptwerk automatically (without waiting for Pace License services to start, the script will take care of that).
CAVEAT - This is a solution for a PC *NOT* connected to the net since the UAC must be lowered to its minimal. If you don't want to lower it, you will get a prompt "Do you want to allow this app to make changes to your device?".
This solution was tested on my Windows 10 "optimized" PC, but I do not offer any guarantee
============== BATCH FILE ==========================
1. Create a folder and name it for example Batch. For example it can be C:\Batch
2. In that folder create the following batch file
PowerShell.exe -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""c:\batch\chk_pacehw.ps1""' -Verb RunAs}"
This command is the only line in the batch.
3. Save in the "batch folder". Name it Chk_PaceHW.bat
============= Powershell Script ========================
1. Copy this script (text between the "0000000" in notepad and save it in the batch folder with the name Chk_PaceHw.ps1
00000000000000000000000000000000000000000000000000000
$ServiceName = 'Pace License Services'
$arrService = Get-Service -Name $ServiceName
while ($arrService.Status -ne 'Running')
{
Start-Service $ServiceName
write-host $arrService.status
write-host 'Service starting'
write-host $ServiceName
Start-Sleep -seconds 5
$arrService.Refresh()
if ($arrService.Status -eq 'Running')
{
Write-Host 'Service is now Running'
}
}
Start-Process -Filepath "C:\Program Files\Hauptwerk Virtual Pipe Organ\Hauptwerk.exe"
00000000000000000000000000000000000000000000000000000
You can change the path and program to start if you use ALT-Config 1, 2 or 3
Basically this script check to see if Pace License Services is started, if not, it will try to start it, wait 5 seconds and if the service is up and running will exit the loop and start Hauptwerk.
As you probably noticed, now when you double click the Hauptwerk icon, there is a delay, something that we didn't have with Hauptwerk 4. So expect this same delay (about 5-6 seconds).
=============== WINDOWS START UP ==============================
Now add a shortcut in the startup folder of the batch Chk_PaceHw.bat, right click on it, click the advanced button and check "Run as administrator".
=============== CAVEAT .... AGAIN =======================
If you don't understand what I'm talking about, don't try it. It is a "rough" solution, you will see windows (2) popping-up. Improvement can be done in the script, but the base is there to suppress Hauptwerk start-up error if the Pace License Services is not yet started.
I haven't done a lot of testing, and on my "optimized" PC, I never had the problem. I guess that Kevin' computer is starting a lot of services (many who could probably be disabled... not for the faint of heart thou...).
Hope this helps
********* EDIT 2020-01-26 *********************
I may have an even simpler solution (who doesn't use powershell, so no need to touch UAC). A simple batch that you but in your startup folder
----------------
@echo off
echo Waiting a bit before starting Hauptwerk
Timeout 10
C:\Program Files\Hauptwerk Virtual Pipe Organ\Hauptwerk.exe
---------------
if the timeout value (10 in this example) is not long enough (Hauptwerk generate an error), then simply edit to increase its value until you reach a level where Hauptwerk starts correctly each and every time.
You may want to simply use this very simple solution...
************** END EDIT **********************
Here is a solution/script to start Hauptwerk automatically (without waiting for Pace License services to start, the script will take care of that).
CAVEAT - This is a solution for a PC *NOT* connected to the net since the UAC must be lowered to its minimal. If you don't want to lower it, you will get a prompt "Do you want to allow this app to make changes to your device?".
This solution was tested on my Windows 10 "optimized" PC, but I do not offer any guarantee
============== BATCH FILE ==========================
1. Create a folder and name it for example Batch. For example it can be C:\Batch
2. In that folder create the following batch file
PowerShell.exe -NoProfile -Command "& {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File ""c:\batch\chk_pacehw.ps1""' -Verb RunAs}"
This command is the only line in the batch.
3. Save in the "batch folder". Name it Chk_PaceHW.bat
============= Powershell Script ========================
1. Copy this script (text between the "0000000" in notepad and save it in the batch folder with the name Chk_PaceHw.ps1
00000000000000000000000000000000000000000000000000000
$ServiceName = 'Pace License Services'
$arrService = Get-Service -Name $ServiceName
while ($arrService.Status -ne 'Running')
{
Start-Service $ServiceName
write-host $arrService.status
write-host 'Service starting'
write-host $ServiceName
Start-Sleep -seconds 5
$arrService.Refresh()
if ($arrService.Status -eq 'Running')
{
Write-Host 'Service is now Running'
}
}
Start-Process -Filepath "C:\Program Files\Hauptwerk Virtual Pipe Organ\Hauptwerk.exe"
00000000000000000000000000000000000000000000000000000
You can change the path and program to start if you use ALT-Config 1, 2 or 3
Basically this script check to see if Pace License Services is started, if not, it will try to start it, wait 5 seconds and if the service is up and running will exit the loop and start Hauptwerk.
As you probably noticed, now when you double click the Hauptwerk icon, there is a delay, something that we didn't have with Hauptwerk 4. So expect this same delay (about 5-6 seconds).
=============== WINDOWS START UP ==============================
Now add a shortcut in the startup folder of the batch Chk_PaceHw.bat, right click on it, click the advanced button and check "Run as administrator".
=============== CAVEAT .... AGAIN =======================
If you don't understand what I'm talking about, don't try it. It is a "rough" solution, you will see windows (2) popping-up. Improvement can be done in the script, but the base is there to suppress Hauptwerk start-up error if the Pace License Services is not yet started.
I haven't done a lot of testing, and on my "optimized" PC, I never had the problem. I guess that Kevin' computer is starting a lot of services (many who could probably be disabled... not for the faint of heart thou...).
Hope this helps
Best regards
François
Virtually sharing my enthusiasm and experience with you
Worldwide technical assistance, consultation and ready to play system.
http://www.HauptwerkConsultant.com
AND Hauptwerk Support Manager
François
Virtually sharing my enthusiasm and experience with you
Worldwide technical assistance, consultation and ready to play system.
http://www.HauptwerkConsultant.com
AND Hauptwerk Support Manager