数码资讯
在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;
声明:本文内容用于数码产品信息整理与选购参考,具体价格、库存、售后政策以官方渠道和电商页面实时信息为准。