I'm a new user of wsus offline and i wanted to give my little contribution to that project, i did'nt see a setup of this prog so i have make one with inno setup
I submit this setup program of wsusoffline update 7.3.2 which include the Automatic Update of WSUS OU v. 0.8 (i don't success to get the 0.9, i don't understand how to)
this setup was made with innosetup 5.4.3, the archive contain the iss script and the setup
zip file (Moderator: Removed download link and inserted provided Inno-Setup script as text.)
wsusoffline.iss
- Code: Select all
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "Wsus offline update"
#define MyAppVersion "7.3.2"
#define MyAppPublisher "Torsten Wittrock"
#define MyAppURL "http://www.wsusoffline.net/"
#define MyAppExeName "UpdateGenerator.exe"
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{F9DC077F-3253-487F-AB93-C197797ED2D3}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={pf}\{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
LicenseFile=lgpl.txt
OutputBaseFilename=setup_wsusoffline_update
Compression=lzma
SolidCompression=yes
VersionInfoVersion={#MyAppVersion}
VersionInfoCompany={#MyAppPublisher}
VersionInfoProductName={#MyAppName}
VersionInfoProductVersion={#MyAppVersion}
DisableStartupPrompt=False
LanguageDetectionMethod=none
;in the line below, change the path name by the path where your source is located
SourceDir=c:\users\azerty\Desktop\wsus
;in the line below, change the path name by the path where your will put the setup program
OutputDir=c:\users\azerty\Desktop
AlwaysUsePersonalGroup=True
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "Deutsh"; MessagesFile: "compiler:Languages\German.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "wsusoffline\UpdateGenerator.exe"; DestDir: "{app}\wsusoffline"; Flags: ignoreversion; Permissions: users-full
Source: "WSUSOU-Update\Updater.exe"; DestDir: "{app}\WSUSOU-Update"; Flags: ignoreversion; Permissions: users-full
Source: "*"; DestDir: "{app}"; Flags: ignoreversion createallsubdirs recursesubdirs; Permissions: users-full
Source: "wsusoffline\doc\faq-enu.txt"; DestDir: "{app}\wsusoffline\doc"; Flags: ignoreversion isreadme; Languages: english french
Source: "wsusoffline\doc\faq-deu.txt"; DestDir: "{app}\wsusoffline\doc"; Flags: ignoreversion isreadme; Languages: Deutsh
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\wsusoffline\{#MyAppExeName}"
Name: "{group}\{cm:ProgramOnTheWeb,{#MyAppName}}"; Filename: "{#MyAppURL}"
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{group}\{cm:UpdateProg,{#MyAppName}}"; Filename: "{app}\WSUSOU-Update\Updater.exe"
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\wsusoffline\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\WSUSOU-Update\Updater.exe"; Flags: nowait postinstall runascurrentuser skipifsilent; Description: "{cm:UpdateProg2,{#StringChange(MyAppName, '&', '&&')}}"
[CustomMessages]
english.UpdateProg=Update %1
french.UpdateProg=Mise à jour de %1
Deutsh.UpdateProg=Update der %1
english.UpdateProg2=%1 application's update, %nthen launch of this one.
french.UpdateProg2=Mise à jour de %1, %npuis lancement de celui-ci.
Deutsh.UpdateProg2=Update der %1, %ndann starten Sie es.
[Messages]
english.UninstalledMost=Some elements could not be removed. %nThese can be removed manually.
Deutsh.UninstalledMost=Enkele elementen konden niet verwijderd worden. %nDeze kunnen handmatig verwijderd worden
french.UninstalledMost=Certains éléments n'ont pas pu être supprimés automatiquement. %nVous pouvez les supprimer manuellement.
[Dirs]
Name: "{app}\wsusoffline"; Permissions: users-full
Name: "{app}\WSUSOU-Update"; Permissions: users-full
[InstallDelete]
Type: dirifempty; Name: "{app}"
[Code]
procedure DeinitializeUninstall();
var
ErrorCode: Integer;
begin
if DirExists (ExpandConstant('{app}')) then
if MsgBox(SetupMessage(msgUninstalledMost), mbInformation, MB_OK) = IDOK then
ShellExec('', ExpandConstant('{win}\explorer.exe'),ExpandConstant('/e, "{app}"'), '', SW_SHOW, ewNoWait, ErrorCode);
end;
thanks for the further comments
Cyril
PS : is it possible for the dev to apply a manifest file to allow wsus offline granting privilege on the windows vista ans seven system ? will be more secure instead apply full user privilege righys to the file and folder, that i have to do in the setup.