I confirm also the problem on the 2nd start in Win8pese and Win8.1se while it runs with Gena, Win7pe :confused:
It seems to be related to the PartitionWizard disk access service drivers (pwdrvsio- pwdrvsio.sys).
When PartitionWizard is launched, It starts the service, if it is not already started and on exit, it stops it.
But on Win8 Win8.1se, once stopped, the service does not restart, I don't know why !!! Hence the concern to restart PartitionWizard.
Also, on Gena, Win7pe the services are stopped at PE startup. They are started in Win8, 8.1
Not really the right solution, I added a workaround for Win8.x SE with a batch below, to block the service stops, by deleting the service registry.
Thus, the service remains always started and it can be launched several times then. To test, it seems to work.
PartitionWizard_Home.cmd
@echo Off
Echo Start-up
for /f "tokens=2* delims= " %%a in ('reg query "HKLM\Software\Microsoft\Windows NT\CurrentVersion" /v CurrentVersion') do Set CurrentVersion=%%b
if "%CurrentVersion%" LEQ "6.1" Goto :StartPartitionWizard
for /f "tokens=1,3 delims=: " %%a in ('sc query pwdrvio') do (
if "%%a"=="STATE" set statepwdrvio=%%b
)
if "%statepwdrvio%"=="RUNNING" (
reg query HKLM\System\CurrentControlSet\Services\pwdrvio
if %ERRORLEVEL% EQU 0 Reg Delete HKLM\System\CurrentControlSet\Services\pwdrvio /f
)
for /f "tokens=1,3 delims=: " %%a in ('sc query pwdspio') do (
if "%%a"=="STATE" set statepwdspio=%%b
)
if "%statepwdspio%"=="RUNNING" (
reg query HKLM\System\CurrentControlSet\Services\pwdspio
if %ERRORLEVEL% EQU 0 Reg Delete HKLM\System\CurrentControlSet\Services\pwdspio /f
)
:StartPartitionWizard
Start Y:\Programs\PartitionWizard_Home\PartitionWizard.exe
Exit
I started with Gena 'Partition Wizard Home' plugin, the same could be done in Aeolis plugin :smile:
[attach=1]
The File Container for 'Partition Wizard Home' is in Gena Sweets.
:cheers:
I found what's wrong in Gena PartitionWizard for Win8, Win8.1. Thanks to Aeolis plugin :thumbsup:
In services, ImagePath needs to be written at Run time, in any case to have the path changed in the registry services.
Iin Win8.x the disk drivers service seems to be loaded earlier with the paths. I guess that the paths are different once the drives are assigned.
Retrieve,FILEVERSION,%Source_Sys%\hal.dll,%SourceVer%
If,%SourceVer%,Smaller,6.2.9200.00000,RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\pwdrvio,ImagePath,system32\drivers\pwdrvio.sys
Else,RegAddBoot,HKLM,0x1,System\ControlSet001\Services\pwdrvio,ImagePath,\??\%SystemDrive%\windows\system32\drivers\pwdrvio.sys
If,%SourceVer%,Smaller,6.2.9200.00000,RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\pwdspio,ImagePath,system32\drivers\pwdspio.sys
Else,RegAddBoot,HKLM,0x1,System\ControlSet001\Services\pwdspio,ImagePath,\??\%SystemDrive%\windows\system32\drivers\pwdspio.sys
Now, both scripts work :great:
Gena's Partition Wizard Home v13 with some other additions (next to Partition Wizard Home_Bin.Script)
[attach=1]
It is the same thing for EASEUS Partition Master Home and perhaps for other plugins.
Retrieve,FILEVERSION,%Source_Sys%\hal.dll,%SourceVer%
If,%SourceVer%,Smaller,6.2.9200.00000,RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\epmntdrv,ImagePath,system32\epmntdrv.sys
Else,RegAddBoot,HKLM,0x1,System\ControlSet001\Services\epmntdrv,ImagePath,\??\%SystemDrive%\windows\system32\epmntdrv.sys
If,%SourceVer%,Smaller,6.2.9200.00000,RegWrite,HKLM,0x2,Tmp_System\ControlSet001\Services\EuGdiDrv,ImagePath,system32\EuGdiDrv.sys
Else,RegAddBoot,HKLM,0x1,System\ControlSet001\Services\EuGdiDrv,ImagePath,\??\%SystemDrive%\windows\system32\EuGdiDrv.sys
Thanks :thumbsup: