User Tools

Site Tools


userspace:oracle_virtualbox

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
userspace:oracle_virtualbox [2013/10/17 07:28]
bobzbobz
userspace:oracle_virtualbox [2021/08/23 08:37] (current)
Line 1: Line 1:
-====== Oracle VirtualBox (for OS compatibility) ======+====== Oracle VirtualBox (for OS compatibility problems) ======
 //Scripts and Guide by Soren Birk// //Scripts and Guide by Soren Birk//
  
 This guide describes how to create a shared virtualbox between several users in a Windows domain environment. \\ This guide describes how to create a shared virtualbox between several users in a Windows domain environment. \\
-This guide will use a virtual machine with Windows XP, but it could be anything you like. The purpose of this \\+This guide will use a virtual machine with Windows XP, but it could be any OS you like. The purpose of this \\
 is to have a virtual environment for programs that can’t run on your primary Operating System. is to have a virtual environment for programs that can’t run on your primary Operating System.
  
 The package creates a shortcut on all users’ desktop called “Create VirtualXP”. When someone clicks this icon,\\ The package creates a shortcut on all users’ desktop called “Create VirtualXP”. When someone clicks this icon,\\
- a new shortcut will appear on __that users’ desktop__ called “VirtualXP”. This shortcut loads the shared virtual machine, \\ + a new shortcut will appear on __that users’ desktop__ called “VirtualXP”. This shortcut loads the __shared__ virtual machine, \\ 
-disables auto-update and disables all the default pop-up messages. If the icon has already been clicked, nothing will happen.+disables auto-update and disables all the default pop-up messages.
  
 **Tested With:** **Tested With:**
Line 20: Line 20:
   * Prepare VirtualBox-installer (.msi):   * Prepare VirtualBox-installer (.msi):
     * Start off by downloading VirtualBox for Windows from: https://www.virtualbox.org/wiki/Downloads     * Start off by downloading VirtualBox for Windows from: https://www.virtualbox.org/wiki/Downloads
-    * Open a command prompt and write: VirtualBox-4.3.0-89960-Win.exe –extract+    * Open a command prompt and write: <path-to-file>\VirtualBox-X.X.X-XXXXX-Win.exe –extract
     * You can now find the .msi-file under Appdata → Local → Temp → Virtualbox. You will need both the .msi-file (x64) and the common.cab.      * You can now find the .msi-file under Appdata → Local → Temp → Virtualbox. You will need both the .msi-file (x64) and the common.cab. 
     * Copy them to CLIENT_DATA\VirtualBox     * Copy them to CLIENT_DATA\VirtualBox
   * Prepare the certificate for silent install:   * Prepare the certificate for silent install:
-    * Now you should install the program (just use the .exe-file) – accept the certificate when prompted.+    * You should now install the program (just use the .exe-file) – accept the certificate when prompted.
     * When installed, go to Run… and write certmgr.msc.     * When installed, go to Run… and write certmgr.msc.
-    * Navigate to “trusted publishers” → Right click and browse to Export… - export the certificate as “oraclecert.cer”. +    * Navigate to “trusted publishers” → Right click "Oracle Corporation" and browse to Export… - export the certificate as “oraclecert.cer”. 
     * Copy the certificate to CLIENT_DATA\Certificate     * Copy the certificate to CLIENT_DATA\Certificate
   * Prepare the virtual machine:   * Prepare the virtual machine:
     * Create a new virtual machine in VirtualBox (doesn’t have to be Windows XP – could also be linux ect.) and set it up with the software you like.     * Create a new virtual machine in VirtualBox (doesn’t have to be Windows XP – could also be linux ect.) and set it up with the software you like.
-    * Network could cause problems when you install the package to a new PC if “bridged” mode is set – I use NAT.+    * Network could cause problemswhen you install the package to a new PCif “bridged” mode is set – I use NAT.
     * When the virtual machine is created as you like, shut it down.     * When the virtual machine is created as you like, shut it down.
-    * Copy the VM-folder from <user folder>\VirtualBox VMs to CLIENT_DATA\VMs-folder.+    * Copy the VM-folder from <user folder>\VirtualBox VMs\<VirtualXP> to CLIENT_DATA\VMs-folder.
   * Prepare the user-specific shortcut:   * Prepare the user-specific shortcut:
     * Create a shortcut to your desktop with a path to: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm VirtualXP.     * Create a shortcut to your desktop with a path to: "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm VirtualXP.
 +    * Create a folder called C:\icons and copy the icon you want for the VirtualXP-shortcut to this folder.
 +    * Finally set the icon for the shortcut.
     * Copy this shortcut to CLIENT_DATA\VMs-folder.     * Copy this shortcut to CLIENT_DATA\VMs-folder.
   * Prepare the .bat-file:   * Prepare the .bat-file:
-    * Create a .bat-file (scroll to bottom) and copy it to CLIENT_DATA\VMs.+    * Create a .bat-file (scroll to the bottom of this guide) and copy it to CLIENT_DATA\VMs.
  
 **Tree:** **Tree:**
Line 64: Line 66:
 </code> </code>
  
-Use Microsoft Orca to get the Msi-ID of the package.+//Use Microsoft Orca to get the Msi-ID for the delsub-script.// 
 + 
 +//Please read through the scripts, as you will need to apply your own domain-specific information.//
  
 ==== setup.ins ==== ==== setup.ins ====
Line 98: Line 102:
  LogError "Not enough free space on %SystemDrive%, " + $MinimumSpace$ + " on the drive %SystemDrive% is needed for " + $ProductId$  LogError "Not enough free space on %SystemDrive%, " + $MinimumSpace$ + " on the drive %SystemDrive% is needed for " + $ProductId$
  isFatalError "Not enough free space"  isFatalError "Not enough free space"
- ; Stop the proces and set installationstatus as failed+ ; Stop the proces and set installation status as failed
 else else
  comment "Show product logo"  comment "Show product logo"
Line 133: Line 137:
  
 [Winbatch_install] [Winbatch_install]
-msiexec /i "%ScriptPath%\VirtualBox\VirtualBox-4.2.12-r84980-MultiArch_amd64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress+msiexec /i "%ScriptPath%\VirtualBox\VirtualBox-X.X.XX-rXXXXX-MultiArch_amd64.msi" /l* "$LogDir$\$ProductId$.install_log.txt" /qb! ALLUSERS=1 REBOOT=ReallySuppress
  
 [Files_install] [Files_install]
Line 219: Line 223:
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
 Set $ProductId$       = "vbox-virtualxp" Set $ProductId$       = "vbox-virtualxp"
-Set $InstallDir$      = "%ProgramFiles32Dir%\Oracle\VirtualBox"+Set $InstallDir$      = "%ProgramFiles64Dir%\Oracle\VirtualBox"
 ; ---------------------------------------------------------------- ; ----------------------------------------------------------------
  
Line 238: Line 242:
  
 [Files_uninstall2] [Files_uninstall2]
-del -sf "%Systemdrive%\Users\$UserProfileName$\Desktop\VirtueltXP.lnk"+del -sf "%Systemdrive%\Users\$UserProfileName$\Desktop\VirtualXP.lnk"
 </code> </code>
  
Line 258: Line 262:
  
 comment "Deleting files" comment "Deleting files"
-Files_uninstall /32Bit+Files_uninstall
   
 comment "Deleting shortcuts" comment "Deleting shortcuts"
Line 317: Line 321:
 </code> </code>
  
 +==== Create_VirtualXP.bat ====
 +<code dos>
 +"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" registervm C:\VMs\VirtualXP\VirtualXP.vbox
 +"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata global GUI/UpdateDate never
 +"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" setextradata global GUI/SuppressMessages remindAboutAutoCapture,remindAboutMouseIntegrationOn,showRuntimeError.warning.HostAudioNotResponding,remindAboutGoingSeamless,remindAboutInputCapture,remindAboutGoingFullscreen,remindAboutMouseIntegrationOff,confirmGoingSeamless,confirmInputCapture,remindAboutPausedVMInput,confirmVMReset,confirmGoingFullscreen,remindAboutWrongColorDepth
 +xcopy "C:\VMs\VirtualXP.lnk" "C:\Users\%username%\Desktop\" /Y
 +msg * "VirtualXP can now be found as a desktop shortcut"
 +</code>
userspace/oracle_virtualbox.1381994884.txt.gz · Last modified: 2021/08/23 08:37 (external edit)