关于用setup factory 7.0打包vb程序的问题??
我想问下大家怎么用setup factory 7.0制作一个安装程序,当运行安装程序时可以读机器的硬盘号,并可以向注册表中插入一项包括了机器的硬盘号的键值呢?我在编辑器中写了如下代码
local Const MAX_FILENAME_LEN = 256;
local dim StrLen as string * MAX_FILENAME_LEN
local dim SerialNum as long
SerialNum = DLL.CallFunction(SessionVar.Expand("%SystemFolder%\\kernel32.dll"), "GetVolumeInformation", "C:\\, StrLen, MAX_FILENAME_LEN, SerialNum, 0&, 0&, StrLen, MAX_FILENAME_LEN", DLL_RETURN_TYPE_LONG, DLL_CALL_CDECL);
if SerialNum < 0 then
SerialNum = (-1) * SerialNum
end
Registry.SetValue(HKEY_LOCAL_MACHINE, "Software\\fivegame", "SerialNum", "CardNum", REG_SZ);
可为什么总报line =2 :'='expected near as 这个错呢??