Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Exporting Data


1 reply to this topic

Toby

Toby
  • Members
  • 6 posts

Posted 12 December 2001 - 06:53

I don't know if this is possible but haven't found any useful info on it. I need to export data from a variable that's generated by the setup, to a different function.

Here's a sample code:

This code checks the registery for a key and outputs class id, then that class id needs to be exported to the UnRegister function.

szKey = "SOFTWARE\\Classes\\Software\\myapp\\Games\\";
if (RegDBKeyExist (szKey + "Game Name") ) then
nResult = RegDBGetKeyValueEx ( szKey + "Game Name", szName, nvType, svValue , nvSize );
UnRegister();
endif;


And the UnRegister fucntion loads the class id and unregisters the key itself.

szKey = "SOFTWARE\\Classes\\CLSID\\";
szKey2 = "\\InprocServer32";
RegDBSetDefaultRoot (HKEY_LOCAL_MACHINE);
nResult = RegDBGetKeyValueEx ( szKey + svValue + szKey2, szName, nvType, svValue , nvSize );
LaunchAppAndWait ( "regsvr32.exe","/u /s " + svValue , WAIT);


I hope anyone out there can help me out with this one.

Regards,
Toby


Toby

Toby
  • Members
  • 6 posts

Posted 12 December 2001 - 07:20

Please ignore my previous post. I got it figured out, was easier than I thought :)

Regards,
Toby