home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 October
/
VPR9710A.ISO
/
PLUGIN
/
INTERVU
/
install.exe
/
FindStuff.ins
< prev
next >
Wrap
Text File
|
1997-05-19
|
2KB
|
46 lines
//
// FindStuff.ins -- Find various things we need
//
SetProgramMode("ObtainInfo");
//
// Here's where we define where we get stuff...
//
LoadScript("LocateWebSites.ins","25");
WindowsPath=GetStringRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion","SystemRoot");
Win95Style="TRUE";
IfEqual(WindowsPath,"")
{
// Must be WinNT...
WindowsPath=GetStringRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion","SystemRoot");
WindowsVersion=GetStringRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion","CurrentVersion");
IfNotEqual(WindowsVersion,"4.0")
{
Win95Style="FALSE";
}
}
SystemPath=WindowsPath+"\System\";
OccacheDir=WindowsPath+"\Occache\";
IfEqual(Win95Style,"TRUE");
{
ProgramFolder=GetStringRegValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Programs");
IVFolder=ProgramFolder+"\InterVU";
Desktop=GetStringRegValue("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Desktop");
}
SetProgress("50");
WindowsPath=WindowsPath+"\";
HomeDir=GetStringRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\InterVU\VUTopia\1.0","Path Name");
IfEqual(HomeDir,"")
{
HomeDir="C:\Program Files";
ChooseDir=PromptYesNo("InterVU files will be installed in C:\Program Files\InterVU by default.\nClick Yes to continue, otherwise click No to choose a different parent folder.");
IfEqual(ChooseDir,"No");
{
HomeDir=GetDirPath("Select existing folder",HomeDir);
}
HomeDir=HomeDir+"\InterVU";
SetStringRegValue("HKEY_LOCAL_MACHINE\SOFTWARE\InterVU\VUTopia\1.0","Path Name",HomeDir);
}
HomeDir=HomeDir+"\";
InstDir=HomeDir+"Multimedia Manager\";
Browser=DefaultBrowser();
SetProgress("100");