Code: Select all
[DEFINE WEB MEDIA Java Utility Application]
Get Component Java Utility Application Selection State into Variable SELECTED
if Variable SELECTED Equals TRUE
Set Variable PROGRESSTEXT to Installing Java Utility Application
Comment: Install the files for the Java Utility Application to a writable
Comment: location so the user can update the utility.
Install Files C:\Installation Files\target\JUA\*.* to $TARGETDIR$\JUA, include subfolders
Install Files C:\Installation Files\common\JUA\*.* to $ALLAPPDATA$\MANUFACTURER\PRODUCT\VER\JUA, include subfolders
Comment: Create registry values for Java Utility Application. The registry entry
Comment: location must not be in Wow6432Node unless the 32-bit JRE is installed on a
Comment: 64-bit machine. Otherwise JUA cannot read the help location from the registry.
if Variable JRE_X86 not Equals TRUE
if Variable JRE_X64 not Equals TRUE
Set Variable ISWINDOWS64BIT to FALSE
Get System Setting Windows in 64 bit Mode into ISWINDOWS64BIT
if Variable ISWINDOWS64BIT Equals TRUE
Comment: THIS DOESN'T WORK. IT STILL WRITES THE VALUE TO Wow6432Node.
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\HTML Help\JUA.chm, $TARGETDIR$\JUA
Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
else
MessageBox: $TITLE$ Setup, not x64
Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\HTML Help\JUA.chm, $TARGETDIR$\JUA
end
else
Set x64 - Native 64 bit Windows, AMD64 and EM64T Architectures - installation mode
Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\HTML Help\JUA.chm, $TARGETDIR$\JUA
Set Win32 - Native 32 bit Windows and Windows 32 on Windows 64 (WOW64) - installation mode
end
else
MessageBox: $TITLE$ Setup, x86
Write Registry Key HKLM\SOFTWARE\Microsoft\Windows\HTML Help\JUA.chm, $TARGETDIR$\JUA
end
end