Difference between revisions of "Winbugs"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (add external link)
m
Line 10: Line 10:
 
Download and install the latest WinBUGS.  Then install any updates using the instructions included at the top of the update.  Do the same for the license.  Now package up installed and working copy using Inno with the following iss file.
 
Download and install the latest WinBUGS.  Then install any updates using the instructions included at the top of the update.  Do the same for the license.  Now package up installed and working copy using Inno with the following iss file.
  
<pre>
+
<source lang="ini">
 
[Setup]
 
[Setup]
 
AppName=WinBUGS
 
AppName=WinBUGS
Line 36: Line 36:
 
Name: "{group}\WinBUGS"; Filename: "{app}\WinBUGS14.exe"
 
Name: "{group}\WinBUGS"; Filename: "{app}\WinBUGS14.exe"
  
</pre>
+
</source>
  
 
To install using WPKG:
 
To install using WPKG:

Revision as of 11:17, 4 May 2011

WinBUGS

WinBugs is a biostatistics tools. More infos form here

Version 14

The installer for WinBUGS doesn't seem to have an uninstaller so you need to create a new installer using Inno. this allows you to include any updates to the original WinBUGS installer plus the now free license file.

Download and install the latest WinBUGS. Then install any updates using the instructions included at the top of the update. Do the same for the license. Now package up installed and working copy using Inno with the following iss file.

[Setup]
AppName=WinBUGS
AppVerName=WinBUGS 14
AppPublisher=Maths
DefaultDirName={pf}\WinBUGS14
DisableDirPage=yes
DefaultGroupName=WinBUGS14
DisableProgramGroupPage=yes
OutputDir=\\domain\wpkg7\server\WPKG-1.1.2\programs\math_progs\winbugs\32bit\inno_output
OutputBaseFilename=winbugs14_maths_setup.exe
Compression=lzma
SolidCompression=yes

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

[Files]
Source: "C:\Program Files\WinBUGS14\WinBUGS14.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Program Files\WinBUGS14\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; Source: "C:\Program Files\WinBUGS14\WinBUGS14.lnk"; DestDir: {commonprograms}\WinBUGS14; Permissions: everyone-readexec
; NOTE: Don't use "Flags: ignoreversion" on any shared system files

[Icons]
Name: "{group}\WinBUGS"; Filename: "{app}\WinBUGS14.exe"

To install using WPKG:

<?xml version="1.0" encoding="UTF-8"?>
<packages>

<package id="winbugs" name="WinBUGS" revision="%version%" reboot="false" priority="1">
	<variable name="version" value="14" />
	<check type="file" condition="exists" path="%PROGRAMFILES%\WinBUGS%version%\winbugs%version%.exe" />
	
	<install cmd='%SOFTWARE%\math_progs\winbugs\32bit\inno_output\winbugs%version%_maths_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /LOG /norestart ' />
	
	<upgrade cmd='%SOFTWARE%\math_progs\winbugs\32bit\inno_output\winbugs%version%_maths_setup.exe /VERYSILENT /SUPPRESSMSGBOXES /LOG /norestart ' />
	
	<remove cmd='%PROGRAMFILES%\WinBUGS%version%\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES /LOG' />
	<remove cmd='%ComSpec% /C RMDIR /S /Q "%PROGRAMFILES%\scilab"'>
		<exit code="any" />
	</remove>
</package>	

</packages>