Jump to content

Any one using Open Rasmol or Pymol - Science software?


Recommended Posts

Posted

Is any one using Open Rasmol or Pymol as recommended by OCR as Science software for A Level students?

 

We have tried Pymol here but it isnt working. I just wondered if there are better ones?

Posted
/S (case sensitive)

 

^ This.

Although I went one step further and extracted the installer contents and built my own with NSIS so I could control the shortcut creation better.

 

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; NSIS installer script			;
; (http://nsis.sourceforge.net) ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

#Definitions
!define PRODUCT_NAME "RasWin"
!define VERSION 1.0
!define PRODUCT_VERSION 1.0
!define PRODUCT_GROUP "SCHOOLNAME"
!define PRODUCT_PUBLISHER "SCHOOLNAME"
!define PRODUCT_UNINST_KEY "Software\Microsoft\Windows\CurrentVersion\Uninstall\${PRODUCT_NAME}"
!define PRODUCT_UNINST_ROOT_KEY "HKLM"
!include "FileFunc.nsh" # Required for EstimatedSize
!include "FileAssociation.nsh" # Required for File Association
;;;;;;;;;;;;;;;;;;;;;;;;;
; General configuration ;
;;;;;;;;;;;;;;;;;;;;;;;;;

Name "${PRODUCT_NAME}"
# Name the installer
OutFile "raswin-setup.exe"
# Define the directory to install to
InstallDir "$PROGRAMFILES\${PRODUCT_PUBLISHER}\${PRODUCT_NAME}"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Installer sections        ;
; The CORE of the installer ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

# default section start; every NSIS script has at least one section.
Section
# Define the output path for this file
SetOutPath "$INSTDIR"
# define what to install and place it in the output path
File /r "source\*.*"

# Add File associations
${registerExtension} "$INSTDIR\raswin.exe" ".pdb" "RasMol RasWin Document"
${registerExtension} "$INSTDIR\raswin.exe" ".cif" "RasMol RasWin Document"

# Write EstimatedSize information
${GetSize} "$INSTDIR" "/S=0K" $0 $1 $2
IntFmt $0 "0x%08X" $0

# Define uninstaller name
WriteUninstaller "$INSTDIR\uninstall.exe"

# Create a shortcut named "new shortcut" in the start menu programs directory
# point the new shortcut at the program executable
SetShellVarContext all
CreateShortCut "$SMPROGRAMS\${PRODUCT_NAME}.lnk" "$INSTDIR\raswin.exe" "" "$INSTDIR\raswin.ico" 0

# Write Uninstallation information
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayName" "$(^Name)"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "UninstallString" "$INSTDIR\uninstall.exe"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "QuietUninstallString" "$INSTDIR\uninstall.exe /S"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "InstallLocation" "$INSTDIR"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayIcon" "$INSTDIR\raswin.ico"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "DisplayVersion" "${PRODUCT_VERSION}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "Publisher" "${PRODUCT_PUBLISHER}"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "VersionMajor" "1"
WriteRegStr ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "VersionMinor" "0"
WriteRegDWORD ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}" "EstimatedSize" "$0"

# default section end
SectionEnd

;;;;;;;;;;;;;;;;;;;;;;;;
; Uninstaller sections ;
;;;;;;;;;;;;;;;;;;;;;;;;

# Create a section to define what the uninstaller does.
# the section will always be named "Uninstall"
Section "Uninstall"

# Always delete uninstaller first
Delete "$INSTDIR\uninstall.exe"

# now delete installed files
Delete "$INSTDIR\*.*"

# Delete the installation files
RMDir /r "$INSTDIR"

# Remove the link from the AllUsers Start Menu
SetShellVarContext all
Delete "$SMPROGRAMS\${PRODUCT_NAME}.lnk"

# Remove file associations
${unregisterExtension} ".pdb" "RasMol RasWin Document"
${unregisterExtension} ".cif" "RasMol RasWin Document"

# Remove registry key
DeleteRegKey ${PRODUCT_UNINST_ROOT_KEY} "${PRODUCT_UNINST_KEY}"

SectionEnd

  • 1 year later...
Posted

To bring an old thread back to life.

 

We're having to install this on some machines. I've got it to silently install but when installing via MDT there is a message at the end of the installation saying it was successful. The MDT task sequence won't continue until "OK" is selected on this message box. Any way round this. It seems the silent command isn't completely silent.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...