Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2004
    Posts
    26

    Peekaboo! Sorry quick question Boolean

    if I execute:

    resultNETframworkv10 = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\.NETFramework\\PendingUpda tes\\v1.0");

    assume it is true

    if (resultNETframworkv10 == true) then
    output = Dialog.Message("output", "message", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end

    how would you recommend construct a boolean compare?

  2. #2
    Join Date
    Dec 2003
    Location
    Location! Location!
    Posts
    6,137
    For what it's worth, I just posted a Boolean comparison example here:

    http://www.indigorose.com/forums/sho...32&postcount=2
    Intrigued

  3. #3
    Join Date
    Jun 2001
    Location
    California
    Posts
    2,014
    I believe it's
    if (resultNETframworkv10) then
    output = Dialog.Message("output", "message", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end

  4. #4
    Join Date
    Nov 2004
    Posts
    26

    Lightbulb THANk guys a script usefull for determining .net framework versions

    --////////////////////////////////////.net search routine//////////////////////////////////////////////////////
    scroutput = Dialog.Message("Initalizing .NET search routine", "click ok to continue, please write down the versions prompted, all unsupported versions will have to be removed", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    --/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    --/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    --main method pending update in .NET folder
    resultNETframworkv10 = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\.NETFramework\\PendingUpda tes\\v1.0");
    resultNETframworkv103705 = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\.NETFramework\\PendingUpda tes\\v1.0.3705");
    resultNETframworkv114322 = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\.NETFramework\\PendingUpda tes\\v1.1.4322");
    -----adding support for ASP v2.0.40607 Beta
    resultNETframworkv2040607 = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\.NETFramework\\PendingUpda tes\\v2.0.40607");
    --///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
    --alternate method through ASP .net fodler
    resultNETframworkv103705confirm288BUILD = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\ASP.NET\\1.0.3705.288" );
    resultNETframworkv103705confirm6018BUILD = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\ASP.NET\\1.0.3705.6018 ");
    resultNETframworkv114322confirm4322BUILD = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\ASP.NET\\1.1.4322.0");
    -----adding support for ASP v2.0.40607 Beta
    resultNETframworkv2040607confirmBETABUILD = Registry.DoesKeyExist(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\Microsoft\\ASP.NET\\2.0.40607.0") ;
    --?????????????????????????????????????????????????? ?????????????????????????????????????????????????? ???????
    --returns boolean
    -----------------------------------------------------------------------------------------------------------
    if (resultNETframworkv10 or resultNETframworkv103705 or resultNETframworkv114322 or resultNETframworkv2040607)then
    --/////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\BUILD beta 6/2005\\\\\\\\\\\\\\\\\\\\\\\\\\///
    if (resultNETframworkv2040607confirmBETABUILD and resultNETframworkv2040607 )then
    output = Dialog.Message("Version of .Net Software", "You have Version 2.0.4.0607 Build Beta installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a INCOMPATIBLE version installed.. 1.0.3705 is currently only supported, please uninstall any unsupported version to maximize operation of this module.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    else
    --/////\\\\\\\\\\\\\\Display .NET verion 2.0.4.0607 installed////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\
    if (resultNETframworkv2040607 or resultNETframworkv2040607confirmBETABUILD)then
    output = Dialog.Message("Version of .Net Software", "You have Version 2.0.4.0607 Build Unknown installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a INCOMPATIBLE version installed.. 1.0.3705 is currently only supported, please uninstall any unsupported version to maximize operation of this module.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    end
    --/////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\BUILD 4322\\\\\\\\\\\\\\\\\\\\\\\\\\///
    if (resultNETframworkv114322confirm4322BUILD and resultNETframworkv114322)then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.1.4.322 Build 4322 installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a INCOMPATIBLE version installed.. 1.0.3705 is currently only supported, please uninstall any unsupported version to maximize operation of this module.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    else
    --/////\\\\\\\\\\\\\\Display .NET verion 1.1.4322 installed////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\
    if (resultNETframworkv114322)then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.1.4.322 Build Unknown installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a INCOMPATIBLE version installed.. 1.0.3705 is currently only supported, please uninstall any unsupported version to maximize operation of this module.", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    end

    --/////\\\\\\\\\\\\\\Display .NET verion 1.0.3705 installed build 6018////////////////\\\\\\\\\\\\\\\\
    if (resultNETframworkv103705confirm6018BUILD and resultNETframworkv103705)then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.0.3705 Build 6018 installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a compatible version installed.. 1.0.3705 build 6018", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    else
    --//////////////////////Display .NET verion 1.0.3705 installed BUILD 288\\\\\\\\\\\\\\\\\\\\\\\\\\///
    if (resultNETframworkv103705confirm288BUILD and resultNETframworkv103705)then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.0.3705 Build 288 installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a compatible version installed.. 1.0.3705 build 288", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    else
    --/////\\\\\\\\\\\\\\Display .NET verion 1.0.3705 installed////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\
    if (resultNETframworkv103705)then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.0.3705 installed ", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    output = Dialog.Message("Version of .Net Software", "You have a compatible version installed.. 1.0.3705 unknown build", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    end
    end
    --?????????????????????????????????????????????????? ?????????????????????????????????????????????????
    --/////\\\\\\\\\\\\\\Display .NET verion 1.0 installed////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\
    if (resultNETframworkv10) then
    output = Dialog.Message("Version of .Net Software", "You have Version 1.0 installed if this is the only popup please upgrade to support Version 1.0.3705", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    --?????????????????????????????????????????????????? ?????????????????????????????????????????????????
    else
    output = Dialog.Message("Version of .Net Software", "You have no version of .NET framework installed if this is the only popup please upgrade to support Version 1.0.3705", MB_OK, MB_ICONINFORMATION, MB_DEFBUTTON1);
    end
    --/////////////////////////////////////////////////////////////////////////////////////////////////////////////
    --/////////////////////////////tested good in live environment 6/5/2005 ///////////////////////////////////////
    --/////////////////////////////////////////////////////////////////////////////////////////////////////////////

Similar Threads

  1. quick question....
    By pswauger in forum AutoPlay Media Studio 5.0
    Replies: 4
    Last Post: 10-15-2006, 10:11 AM
  2. Quick Question Showing Windows system time in AMS
    By slafta in forum AutoPlay Media Studio 5.0
    Replies: 3
    Last Post: 11-25-2004, 11:36 PM
  3. hey corey i got a quick one question for ya
    By dj_flyer2000 in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 04-06-2003, 01:00 AM
  4. Quick Build Question
    By labrat in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 04-04-2003, 04:31 PM
  5. quick question on building
    By Ted in forum AutoPlay Menu Studio 3.0
    Replies: 1
    Last Post: 05-09-2000, 11:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts