check for ghostscript sub key; added more logging
This commit is contained in:
parent
0e6b3078c2
commit
bb9e2ef565
2 changed files with 13 additions and 1 deletions
|
|
@ -89,7 +89,7 @@ namespace AmagnoVirtualPrinter.WixSharpInstaller
|
|||
|
||||
var gsKey = RegistryKey
|
||||
.OpenBaseKey(Microsoft.Win32.RegistryHive.LocalMachine, registryView)
|
||||
.OpenSubKey(@"SOFTWARE\GPL Ghostscript\9.52");
|
||||
.OpenSubKey(@"SOFTWARE\GPL Ghostscript");
|
||||
|
||||
if (gsKey == null)
|
||||
{
|
||||
|
|
@ -98,6 +98,15 @@ namespace AmagnoVirtualPrinter.WixSharpInstaller
|
|||
return;
|
||||
}
|
||||
|
||||
var subKeyNames = gsKey.GetSubKeyNames();
|
||||
gsKey = gsKey.OpenSubKey(subKeyNames[0]);
|
||||
if (gsKey == null)
|
||||
{
|
||||
MessageBox.Show(gsNotFound);
|
||||
e.Result = ActionResult.Failure;
|
||||
return;
|
||||
}
|
||||
|
||||
var gsAssembly = (string)gsKey.GetValue("GS_DLL");
|
||||
|
||||
if (System.IO.File.Exists(gsAssembly))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue