Did you know…… OS VALUE= ?


If you removed all the OS values within the OSD file it will allow the Application to run on any platform!


For Example, The below will only execute and run on windows Vista and Windows XP



   1: <?xml version=”1.0″ standalone=”no”?>
   2: <SOFTPKG GUID=”C5F08D2E-B660-47E6-83E9-DC0671E78840″ NAME=”By Choice” VERSION=”1.0.0.1″>
   3:     <IMPLEMENTATION>
   4:         <CODEBASE HREF=”rtsp://%SFT_SOFTGRIDSERVER%:554/CIP_200/CIP_200_2.sft” GUID=”2522568D-6603-4666-AFC7-D9924FE9B0B6″ SYSGUARDFILE=”CIP_200\osguard.cp” SIZE=”503294652″ PARAMETERS=”” FILENAME=”CIP_200\VFS\CSIDL_PROGRAM_FILES\Communicate\By Choice\By Choice.exe”/>
   5:         <OS VALUE=”WinVista”/>
   6:         <OS VALUE=”WinXP”/>
   7:         <VIRTUALENV TERMINATECHILDREN=”FALSE”>
   8:             <ENVLIST/>
   9:         </VIRTUALENV>
  10:         <WORKINGDIR/>
  11:         <VM VALUE=”Win32″>
  12:             <SUBSYSTEM VALUE=”windows”/>
  13:         </VM>
  14:     </IMPLEMENTATION>
  15:     <DEPENDENCY>
  16:         <CLIENTVERSION VERSION=”3.1.2.2″/>
  17:     </DEPENDENCY>
  18:     <SUITE NAME=”Comunicate_In_Print_v2_VFS”/>
  19:     <TITLE>Commincate In Print V2</TITLE>
  20:     <ABSTRACT/>
  21:     <MGMT_SHORTCUTLIST>
  22:         <SHORTCUT LOCATION=”%CSIDL_PROGRAMS%\Widgit\By Choice” FILENAME=”By Choice.lnk” OVERRIDDEN=”FALSE” DISPLAY=”By Choice” ICON=”%SFT_MIME_SOURCE%/CIP_200 Icons/ByChoice1.ico”/>
  23:     </MGMT_SHORTCUTLIST>
  24:     <MGMT_FILEASSOCIATIONS>
  25:         <PROGIDLIST/>
  26:         <FILEEXTENSIONLIST/>
  27:     </MGMT_FILEASSOCIATIONS>
  28: </SOFTPKG>

Now if you wanted to let this code work for all operating systems you could simply remove the OS Value attributes in row 5 and 6.


This would allow the code to work on any Operating System with a supported SoftGrid Client and the OS Check would just be bypassed;



   1: <?xml version=”1.0″ standalone=”no”?>
   2: <SOFTPKG GUID=”C5F08D2E-B660-47E6-83E9-DC0671E78840″ NAME=”By Choice” VERSION=”1.0.0.1″>
   3:     <IMPLEMENTATION>
   4:         <CODEBASE HREF=”rtsp://%SFT_SOFTGRIDSERVER%:554/CIP_200/CIP_200_2.sft” GUID=”2522568D-6603-4666-AFC7-D9924FE9B0B6″ SYSGUARDFILE=”CIP_200\osguard.cp” SIZE=”503294652″ PARAMETERS=”” FILENAME=”CIP_200\VFS\CSIDL_PROGRAM_FILES\Communicate\By Choice\By Choice.exe”/>
   5:         <VIRTUALENV TERMINATECHILDREN=”FALSE”>
   6:             <ENVLIST/>
   7:         </VIRTUALENV>
   8:         <WORKINGDIR/>
   9:         <VM VALUE=”Win32″>
  10:             <SUBSYSTEM VALUE=”windows”/>
  11:         </VM>
  12:     </IMPLEMENTATION>
  13:     <DEPENDENCY>
  14:         <CLIENTVERSION VERSION=”3.1.2.2″/>
  15:     </DEPENDENCY>
  16:     <SUITE NAME=”Comunicate_In_Print_v2_VFS”/>
  17:     <TITLE>Commincate In Print V2</TITLE>
  18:     <ABSTRACT/>
  19:     <MGMT_SHORTCUTLIST>
  20:         <SHORTCUT LOCATION=”%CSIDL_PROGRAMS%\Widgit\By Choice” FILENAME=”By Choice.lnk” OVERRIDDEN=”FALSE” DISPLAY=”By Choice” ICON=”%SFT_MIME_SOURCE%/CIP_200 Icons/ByChoice1.ico”/>
  21:     </MGMT_SHORTCUTLIST>
  22:     <MGMT_FILEASSOCIATIONS>
  23:         <PROGIDLIST/>
  24:         <FILEEXTENSIONLIST/>
  25:     </MGMT_FILEASSOCIATIONS>
  26: </SOFTPKG>

Comments (2)

  1. Anonymous says:

    Hi Frank,

    Cheers for letting me know the typo! Fat Fingers 🙂

    No problem with you translating and putting the post up… just be as good to put a friendly link back to our blog 🙂

    As long as the knowledge is getting out to the world is what we care about 🙂

    Thanks

    Justin

  2. Anonymous says:

    Hello,

    a remark an one questeion.

    If you removed all the OSD values …

    correct –>    all the OS VALUEs …

    I have translated your Post into German an posted it on my Site http://www.softgrider.de.

    Do you have objections?

    Regards from Germany

    Frank