虎版,我代码处有这两个问题不太明白。
如下,这个是我其中的问题部分
[CustomMessages]段
chinesesimp.cmUnload=您是否要保留用户配置信息?
chinesetraditional.cmUnload=您是否要保留用戶配置信息?
english.cmUnloadm=Are you sure to save configuration information?
【code】
procedure CurUninstallStepChanged(CurUninstallStep: TUninstallStep);
begin
if ActiveLanguage = 'chinesesimp' then
begin
unload:='您是否要保留用户配置信息?'
end ;
if ActiveLanguage = 'english' then
begin
unload:='Are you sure to save configuration information?'
end ;
if ActiveLanguage = 'chinesetraditional' then
begin
unload:='您是否要保留用戶配置信息?'
end ;
if CurUninstallStep = usPostUninstall then
if MsgBox(CustomMessage('cmUnload'), mbConfirmation, MB_YESNO) = IDNO then
//删除 {app} 文件夹及其中所有文件
DelTree(ExpandConstant('{app}'), True, True, True);
RegDeleteKeyIncludingSubkeys(HKCU, 'Software\IAP')
end;
为什么还是会警告没有定义,[CustomMessages]段chinesetraditional.后面的部分应该怎么写才对?
第二个问题:
while IsAppRunning
do
begin
if MsgBox('检测到AlarmRelay正在运行,卸载时请关闭!'#13'要自动关闭它并继续吗?', mbConfirmation, MB_OKCANCEL) = IDOK then
begin
Exec(ExpandConstant('{app}\tools\janhkill.exe'), 'AlarmRelay.exe', '', SW_SHOW, ewWaitUntilTerminated, ResultCode);
IsAppRunning:= IsModuleLoaded('AlarmRelay.exe');
end
这个是一个检测进程,然后卸载的代码段,会发生一种情况,我AlarmRelay.exe在有一些机子上打开,是叫AlarmRelay.exe *32 可是是跟操作系统32位有关系,这导致我杀不掉,我应该怎么修改这个?
麻烦指点一下,谢谢你。