Archive: multilanguage files


multilanguage files
Hello,

i have to write an installer for the bginfo from sysinernals. i have to copy 3 files (bginfo.exe, bginfo.bgi and bginfo.vbs) from the source to the %ProgramFiles%\BGinfo directory. Because bginfo stores the location of the vbs files hardcoded in the bgi-file i have to write a setup which copies source from c:\programme\bginfo if the os is german and c:\program files if the os is english. how can i implement this? There will be a easy example?

Thanks a lot;) ;)


Use $PROGRAMFILES.


Sysinernals typo or fake sysinternals spyware shit?


:mad:


Forums where users wan't help others and can only write stupid comments i don't like so i will get out of it.


Well, as far as I can see there are no stupid comment, both where seriously ment, and Kichik made the helpfull remark "Use $PROGRAMFILES"

$PROGRAMFILES variable contains the foldername in the GUI language of the OS.

Success


read the comments before and you must agree me.


I think I speak for all of us if I say that we don't want to help some dickhead form spyware company.

All you need to do is prove that you are not some dickhead form spyware company and I will apologize and try to help you.

Real Sysinternals is already suffering from fake sites that spread programs with exactly same name what probably contains spyware shit. So if you work for real Sysinternals cause you should be grateful that I am sceptical about your motives.


Okay i think i explained wrong. I use the bginfo from sysinternals and used a custom field which uses a vbs-script to determine the serial number of a pc. For that i wan't to write a setup which copies the needed files to the $PROGRAMFILES\Bginfo directory and starts the program automatically.

so a Inno-Setup looks like this:
[Setup]
AppName=BGInfo
AppVerName=BGInfo 4.7.0.0
AppPublisher=Bryce Cogswell
AppPublisherURL=http://www.sysinternals.com
AppSupportURL=http://www.sysinternals.com
AppUpdatesURL=http://www.sysinternals.com
DefaultDirName={pf}\BGInfo
DisableDirPage=yes
DefaultGroupName=BGInfo
DisableProgramGroupPage=yes
OutputDir=C:\Software\Tools\BgInfo\Output
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes

[Languages]
Name: "eng"; MessagesFile: "compiler:Default.isl"

[Files]
Source: "C:\Software\Tools\BgInfo\Bginfo.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Software\Tools\BgInfo\pcsupport.bgi"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Software\Tools\BgInfo\pcsupport.vbs"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Registry]
Root:HKLM; SubKey: SOFTWARE\Microsoft\Windows\CurrentVersion\Run; ValueType: string; ValueName: "BGInfo"; ValueData: "{app}\BgInfo\Bginfo.exe {app}\BgInfo\pcsupport.bgi /silent /taskbar"; Flags: uninsdeletevalue

[InstallDelete]
Type: filesandordirs; Name: "{app}"

[UnInstallDelete]
Type: filesandordirs; Name: "{app}"

but the problem is that running under the Run key.
the path of the pcsupport.vbs is stored in the pcsupport.bgi

so i will be looking for a install script which stores two versions of the source in a zip and automatically installs the right one in depencies of the os.


You need a quote for Reg Key, The quote in Inno maybe ""something""

If you refer to NSIS

Just write this anywhere

WriteRegStr HKLM SOFTWARE\Microsoft\Windows\CurrentVersion\Run "BGInfo" '"{app}\BgInfo\Bginfo.exe" "{app}\BgInfo\pcsupport.bgi" /silent /taskbar';