CheckRegistry ... what i am doing wrong ?
Posted: Wed Jan 09, 2008 12:08 pm
Existing Registry Key:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\Windows NT x86\\Drivers\\Version-3\\Amyuni Document Converter 2.51]
"Configuration File"="acpdfui251.dll"
"Data File"="acfpdf.txt"
"Driver"="acpdf251.dll"
"Help File"=""
"Monitor"=""
"Datatype"=""
"Dependent Files"=hex(7):00,00,90,90
"Previous Names"=hex(7):00,00,90,90
"Version"=dword:00000003
"TempDir"=dword:00000000
"Attributes"=dword:00000002
"Manufacturer"=""
"OEM URL"=""
"HardwareID"=""
"Provider"=""
"DriverDate"=hex:00,00,00,00,00,00,00,00
"DriverVersion"=hex:00,00,00,00,00,00,00,00
Snip of MSIcode from InstallAwareDeveloper7
What i am trying to do is to check if this key NOT exists, run additional instalation, otherwise skip it:
Set Variable AMYUNI to
Check Registry Key HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\Windows NT x86\\Drivers\\Version-3\\Amyuni Document Converter 2.51\\Driver\\ into AMYUNI
if Variable AMYUNI Equals UNKNOWN$TYPE
MessageBox: .., The value exists, but is of an unknown type
end
if Variable AMYUNI Equals BINARY$VALUE
MessageBox: .., The value exists, but is a binary type that cannot be read with this command.
end
if Variable AMYUNI Equals NO$VALUE
MessageBox: .., The specified key exists, but the specified value does not exist
end
if Variable AMYUNI Equals NO$KEY
MessageBox: .., The specified key does not exist
end
if Variable AMYUNI Equals READ$ERROR
MessageBox: .., An error occured during the read operation (check access privileges).
end
if Variable AMYUNI Equals acpdf251.dll
MessageBox: .., already
else
Run Program $TARGETDIR$\\install.exe "Printer" -n"Company Name" -s (WAIT)
end
I am always getting *The specified key does not exist* even when the key is there.
Any help will be greatly appreciated
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\Windows NT x86\\Drivers\\Version-3\\Amyuni Document Converter 2.51]
"Configuration File"="acpdfui251.dll"
"Data File"="acfpdf.txt"
"Driver"="acpdf251.dll"
"Help File"=""
"Monitor"=""
"Datatype"=""
"Dependent Files"=hex(7):00,00,90,90
"Previous Names"=hex(7):00,00,90,90
"Version"=dword:00000003
"TempDir"=dword:00000000
"Attributes"=dword:00000002
"Manufacturer"=""
"OEM URL"=""
"HardwareID"=""
"Provider"=""
"DriverDate"=hex:00,00,00,00,00,00,00,00
"DriverVersion"=hex:00,00,00,00,00,00,00,00
Snip of MSIcode from InstallAwareDeveloper7
What i am trying to do is to check if this key NOT exists, run additional instalation, otherwise skip it:
Set Variable AMYUNI to
Check Registry Key HKLM\\SYSTEM\\CurrentControlSet\\Control\\Print\\Environments\\Windows NT x86\\Drivers\\Version-3\\Amyuni Document Converter 2.51\\Driver\\ into AMYUNI
if Variable AMYUNI Equals UNKNOWN$TYPE
MessageBox: .., The value exists, but is of an unknown type
end
if Variable AMYUNI Equals BINARY$VALUE
MessageBox: .., The value exists, but is a binary type that cannot be read with this command.
end
if Variable AMYUNI Equals NO$VALUE
MessageBox: .., The specified key exists, but the specified value does not exist
end
if Variable AMYUNI Equals NO$KEY
MessageBox: .., The specified key does not exist
end
if Variable AMYUNI Equals READ$ERROR
MessageBox: .., An error occured during the read operation (check access privileges).
end
if Variable AMYUNI Equals acpdf251.dll
MessageBox: .., already
else
Run Program $TARGETDIR$\\install.exe "Printer" -n"Company Name" -s (WAIT)
end
I am always getting *The specified key does not exist* even when the key is there.
Any help will be greatly appreciated