当前位置:首页> 正文

在installshield中写注册表,让应用程序开机启动

在installshield中写注册表,让应用程序开机启动

在installshield中写注册表,让应用程序开机启动
下面脚本在is项目脚本 大约292行处

///////////////////////////////////////////////////////////////////////////////
// //
// Function: SetupRegistry //
// //
// Purpose: This function makes the registry entries for this setup. //
// //
///////////////////////////////////////////////////////////////////////////////

function SetupRegistry()NUMBER nResult;STRING     szPath3;STRING     szResult;begin   // TODO : Add all your registry entry keys here   //   //   //     RegDBCreateKeyEx, RegDBSetKeyValueEx....   //   //nResult = CreateRegistrySet( "" );   if(FindFile(TARGETDIR,"Sanc.exe",szResult)=0)    then       szPath3=TARGETDIR^"Sanc.exe";       LongPathToQuote(szPath3,TRUE);       RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);       nResult=RegDBSetKeyValueEx("SOFTWAREMicrosoftWindowsCurrentVersionRun","Sanc",REGDB_STRING,szPath3,-1);   endif;   return nResult;end;

展开全文阅读

相关内容