16,554
社区成员
发帖
与我相关
我的任务
分享
ProductPath = Registry.GetValue(HKEY_LOCAL_MACHINE, "Software\\Programname", "keyname", false);
if (ProductPath == "") then
Error = Dialog.Message("提示", "此系统未安装骗人Programname。", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
Application.Exit(0);
end
SessionVar.Set("%AppFolder%", ProductPath);
Dim Old as string
Dim NewFile as string
NewFile = 更新文件的位置
Old = My.Computer .Registry.LocalMachine.OpenSubKey("software").OpenSubKey("WInrar").GetValue("exe32") '读取以前软件的位置
Io.File .Delete(old)
Io.File .Copy (NewFile,old)