Help - Search - Members - Calendar
Full Version: Anyone Have A Working Paragon Partition Manager 9.5 Plugin?
The CD Forum > Bart's PE Builder > Plugins
bbersted
Has anyone developed a working BartPE plugin for paragon partition manager 9.5? I searched the forums without success. I have tried to construct one, based on what others have found to work with version 9 ( making changes as I found necessary with the slightly changed directory structure), but I get the runtime error referencing the launcher.exe “application has required the runtime to terminate in an unusual way”.

In my plugins below, the files directory was copied directly from that of the installed version in C:\Program files\Pmanager.

The INF file is

CODE
; PManager.inf
; PE Builder v3 plug-in INF file for Paragon Partition Manager
;
; disabled Recovery Media Builder, and hotcore3.sys by default
; in the plugin as i don't think there needed in PE.

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Paragon Partition Manager v9.5"
Enable=1

[WinntDirectories]
a="Programs\PManager",3

[SourceDisksFolders]
files=a

[SourceDisksFiles]
files\system32\prgiso.dll=2,,1
files\system32\qtp-mt334.dll=2,,1
;files\system32\msvcp60.dll=2,,1
;files\system32\msvcrt.dll=2,,1

[Software.AddReg]
0x2, "Sherpya\XPEinit\Programs","Paragon Partition Manager 9.5 Professional","%SystemDrive%\Programs\PManager\Program\launcher.exe||%SystemDrive%\Programs\Pmanager\program\launcher.ico"

;[SetupReg.Addreg]
;0x1,"ControlSet001\Control\Nls\Locale","00000409","1"
;0x1,"ControlSet001\Control\Nls\Language Groups","1","1"
;0x1,"ControlSet001\Control\Nls\Locale\Alternate Sorts","00010407","1"


CODE
The XML file used is


<!-- Nu2Menu entry for Partition Manager -->
<NU2MENU>
    <MENU ID="Programs">              
        <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\PManager\Program\launcher.exe))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\PManager\Program\launcher.exe">Partition Manager</MITEM>
    </MENU>
</NU2MENU>


Any help would be greatly appreciated

bbersted
paraglider
That should work. A very similar one has worked for PM9 and PM 10 for me. Think it needs to run from a writable drive. I run from the ram drive.

You should launch with a batch file that does the following:

reg delete hklm\system\currentcontrolset\control\minint /f
start /wait %ramdrv%\Winpm\Program\launcher.exe
reg add hklm\system\currentcontrolset\control\MiniNT /ve
bbersted
The part I added was the bat file

CODE
reg delete hklm\system\currentcontrolset\control\minint /f
start /wait %ramdrv%\Programs\PManager\Program\launcher.exe
reg add hklm\system\currentcontrolset\control\MiniNT /ve
exit


I now get the error "Windows cannot find B:\Programs\PManager\Program\launcher.exe"

In the compiled bartpe output for the bartpe disk, the path is as in the middle line of the above bat file. What did I do wrong?

bbersted
paraglider
You did not copy PM to the ram drive in B:\Programs\PManager
bbersted
Paraglider

Sorry to be dense, but could you provide more details on how you use ram drive in this case. You indicated I need to copy my PM to the B:\Programs\PManager folder. Can you give more detail on how best to do this.

Thanksing you in advance

bbersted
Ed_P
I think this should work:
CODE
xcopy %SystemDrive%\Programs\PManager\*.*  %ramdrv%\Programs\PManager\ /s > nul
reg delete hklm\system\currentcontrolset\control\minint /f
start /wait %ramdrv%\Programs\PManager\Program\launcher.exe
reg add hklm\system\currentcontrolset\control\MiniNT /ve
exit
bbersted
Thanks Ed_P

I copied code into the bat file, but I get an error that file -*.* not found. My bat file is in the root of the Pmanager directory after compiling with Bartpe.

Regards
bbersted
bbersted
I found an error in the bat file I copied , such that all PM files are now correctly copied to ram disk (B:)as in the last recommended addition by Ed_P. Unfortunately, even with running from the ram disk, I still get the original runtime error. Paraglider, would it be possible to share the plugin that you have successfully used for both versions 9 and 10?

Regards bbersted
paraglider
Here is what works for me:

CODE
[Version]
  Signature= "$Windows NT$"
  
  [PEBuilder]
  Name="Paragon Partition Manager 10.0"
  Enable=1
  
  [WinntDirectories]
  a="Programs\PM10",2
  
  [SourceDisksFolders]
  System32=2
  
  [SourceDisksFiles]
;schedsvc.dll=2
  winpm_sfx.exe=a
  launcher.ico=a
  pm10pro.cmd=a
   hotcore3.sys=4

[SetValue]
"txtsetup.sif", "SourceDisksFiles", "hotcore3.sys", "1,,,,,,_3,4,1"
"txtsetup.sif", "SCSI.Load", "hotcore3", "hotcore3.sys,4"
"txtsetup.sif", "SCSI", "hotcore3", """Paragon hotcore3 driver"""

[SetupReg.AddReg]
0x4, "ControlSet001\Services\atapi\Parameters","EnableBigLba", 0x00000001
0x4, "ControlSet001\Enum\Root\LEGACY_HOTCORE3", "NextInstance", 0x00000001
0x1, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "Service", "hotcore3"
0x4, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "Legacy", 0x00000001
0x4, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "ConfigFlags", 0x00000000
0x1, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "Class", "LegacyDriver"
0x1, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "ClassGUID", "{8ECC055D-047F-11D1-A537-0000F8753ED1}"
0x1, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "DeviceDesc", "hotcore3"
0x4, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000", "Capabilities", 0x00000000
0x1, "ControlSet001\Enum\Root\LEGACY_HOTCORE3\0000\Control", "ActiveService", "hotcore3"
0x4, "ControlSet001\Services\hotcore3", "Type", 0x00000001
0x4, "ControlSet001\Services\hotcore3", "Start", 0x00000000
0x4, "ControlSet001\Services\hotcore3", "ErrorControl", 0x00000001
0x2, "ControlSet001\Services\hotcore3", "ImagePath", "system32\drivers\hotcore3.sys"
0x1, "ControlSet001\Services\hotcore3", "DisplayName", "hotcore3"
0x1, "ControlSet001\Services\hotcore3", "Group", "System Bus Extender"
0x1, "ControlSet001\Services\hotcore3\Enum", "0", "Root\LEGACY_HOTCORE3\0000"
0x4, "ControlSet001\Services\hotcore3\Enum", "Count", 0x00000001
0x4, "ControlSet001\Services\hotcore3\Enum", "NextInstance", 0x00000001
0x7, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","UpperFilters","hotcore3","PartMgr"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","Class","DiskDrive"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","","Disk drives"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","Installer32","StorProp.Dll,DiskClassInstaller"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","SilentInstall","1"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","NoInstallClass","1"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","TroubleShooter-0","hcp://help/tshoot/tsdrive.htm"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}","Icon","-53"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","InfPath","disk.inf"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","InfSection","disk_install"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","InfSectionExt",".NT"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","ProviderName","Microsoft"
0x3, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","DriverDateData",\
00,80,62,c5,c0,01,c1,01
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","DriverDate","7-1-2001"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","DriverVersion","5.1.2535.0"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","MatchingDeviceId","gendisk"
0x1, "ControlSet001\Control\Class\{4D36E967-E325-11CE-BFC1-08002BE10318}\0000","DriverDesc","Disk drive"


  
  [Software.AddReg]
; Add to XPE Start Menu
;0x2,"Sherpya\XPEinit\Programs","Drive Tools\Paragon\Partition Manager 10","%SystemDrive%\Programs\PM10\winpm_sfx.exe||%SystemDrive%\Programs\PM10\launcher.ico"
  0x2,"Sherpya\XPEinit\Programs","Drive Tools\Paragon\Partition Manager 10","%SystemDrive%\Programs\ShellExecute\ShellExecute.exe|/h %SystemDrive%\programs\PM10\PM10Pro.cmd|%SystemDrive%\Programs\PM10\launcher.ico



CODE
@echo off
  echo PM10Pro.CMD: Starting...
  setlocal
  if "%ramdrv%" == "" goto _err
  if exist "%ramdrv%\Winpm\Program\launcher.exe" goto _run
  start /wait %~dp0\winpm_sfx.exe
  :_run
  reg delete hklm\system\currentcontrolset\control\minint /f
  start /wait %ramdrv%\Winpm\Program\launcher.exe
  reg add hklm\system\currentcontrolset\control\MiniNT /ve
  goto _end
  :_err
  echo.
  echo PM10Pro.CMD: No ramdrv variable set...
  echo PM10Pro.CMD: Try adding a ramdrive...
  echo.
  pause.
  :_end
  endlocal
paraglider
Have you tried running launcher.exe with depends.exe to see if you have any missing dependency files.
bbersted
Paraglider

I used the depends.exe to launch launcher.exe as you suggested. Only one message was given, "mpr.dll unresolved input due to missing export function in delay-load dependent module". While this may be related to my runtime problem, I ran the launcher for version 9, which works and does not have runtime errors with a similar message. Perhaps the message relative to mpr.dll is a red herring relative to the runtime error?

Perhaps at this point I should explain what form the PPM9.5 program was in from Paragon. It is a .msi installation file. This may be why I am sort of shooting blind when it comes to what files are installed where. While ( if I understand your inf sucecessful installation of version 10) it appears that the use of the putting of the self extracting program files into an ppm_sfx.exe file, this may not buy me anything, since the same files I am using unsuccessfully are just being compressed and uncompressed on the ram drive. This begs the question as to what files you are incorporating into the sfx_ppm10 file. Are they a archive of the installed program as in C:\program files or the files of the uninstalled program ( in my case this would be teh extracted files form the msi installer, minus the msi installer?

As you can probably tell I am confused, since a rather simple plugin for version 9 sufficed. Thanks for all you help for a neophyte

regards
bbersted
paraglider
Contents of self extracting exe attached. This is copied straight from the install directories ( I delete some of the html help files to save space ).
bbersted
Thank you all for your help. I tried the remove registry remove/ram disk suggestion above with my original PM9.5 INF,but still got the original runtime error. I then allowed the three original [SetupReg.Addreg] entries in the original INF I started this thread with. This combination finally worked- in my plugin BOTH the removal of the key as suggested by parqaglider AND the [SetupReg.Addreg] entries commented out in my original INF file were needed to make the plugin work for me, I found that I did not need to copy to ram disk either for further simplification and faster loading times. In any case, below I list the paragon partition manager 9.5 SE plugin that worked for me .

PManager95.inf
CODE
; PManager.inf
; PE Builder v3 plug-in INF file for Paragon Partition Manager
;
; disabled Recovery Media Builder, and hotcore3.sys by default
; in the plugin as i don't think there needed in PE.

[Version]
Signature= "$Windows NT$"

[PEBuilder]
Name="Paragon Partition Manager v9.5"
Enable=1

[WinntDirectories]
a="Programs\PManager",3

[SourceDisksFolders]
files=a

[SourceDisksFiles]
files\system32\*.*=2,,1

[Append]
nu2menu.xml, PManager95_nu2menu.xml

[Software.AddReg]
0x2, "Sherpya\XPEinit\Programs","Paragon Partition Manager 9.5 Professional","%SystemDrive%\Programs\PManager\Program\launcher.exe||%SystemDrive%\Programs\Pmanager\program\launcher.ico"

[SetupReg.Addreg]
0x1,"ControlSet001\Control\Nls\Locale","00000409","1"
0x1,"ControlSet001\Control\Nls\Language Groups","1","1"
0x1,"ControlSet001\Control\Nls\Locale\Alternate Sorts","00010407","1"


PM95.cmd file
CODE
reg delete hklm\system\currentcontrolset\control\minint /f
start /wait \Programs\PManager\Program\launcher.exe
reg add hklm\system\currentcontrolset\control\MiniNT /ve
exit


nu2menu.xml, PManager95_nu2menu.xml
CODE
- <!--  Nu2Menu entry for Partition Manager  -->
- <NU2MENU>
- <MENU ID="Programs">
  <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\PManager\PM95.cmd))" CMD="RUN" FUNC="@GetProgramDrive()\Programs\PManager\PM95.cmd">Partition Manager</MITEM>
  </MENU>
  </NU2MENU>


Thanks again to paraglider and Ed_P for all your help to resolve this.
Ed_P
Thank you bbersted.
dacuda
@paraglider

what files are in the System32 folder that you're referencing in your inf file?

CODE
[SourceDisksFolders]
System32=2


EDIT: After doing some trail and error, I narrowed it down to prgiso.dll & qtp-mt334.dll. Once I put those 2 files in there everything started working. I figured I'd post my own answer in case someone else has the same question.
the_engineeer
OK, I have created the files PManager95.inf, PM95.cmd, nu2menu.xml, and PManager95_nu2menu.xml in the "Plugin\PManager" folder as above. I then copied all files from the setup folder to the "Plugin\PManager\files" -folder. Created a "Plugin\PManager\files\system32" folder and copied the two .DLL's there.
But I still get the runtime error when I try to start the app within BartPE...
What am I doing wrong?

(I'm using a volume licence WinXP/SP2 for my O/S source files)
Unimatrix
Hey @ all
dont forget the prgiso.dll in system32. If i added this dll, the script from paraglider works very well.
Befor i get a cant load hd*.dll error.

To save Space in the ramdrive, i removed the iso file from the sfx file.

ux
mbarnes
Hi All

When I looked at Paragon partition manager professional V9.5 I found about 35 meg of help files
you do not need to copy any of them to the ramdrive

at program\resource\HTML\help\ is about 15 Meg of HTML help files (help.html is the index file)

and help.chm at program\resource\HTML\ and
PM10profhelpe.chm at program\resource\help
both chm files were the same despite name PM10

I kept help.chm separate from the other files so I could call it using HH.exe from a chm help file plugin found in XPE plugins

CODE
        <MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\PManager95\Help\Help.chm))"
     CMD="RUN" FUNC="@GetWinDir()\hh.exe @GetProgramDrive()\Programs\PManager95\Help\Help.chm">Paragon Partition Manager 9.5 HELP</MITEM>



Like someone suggested I took out a 60Meg ISO rescue CD (from folder ISO)
and also the bootmanager bmw

but it still needs about 40 Meg free on ramdrive

regards
Mike Barnes
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.