Results 1 to 8 of 8

Thread: Some issues regarding setup files.

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Some issues regarding setup files.

    Firstly is it possible for me to modify the setup files so I can add custom backgrounds, change form and button colors etc...

    Secondly how can I introduce a registeration system where they have to put in their name, email. When they send their details it adds it MySQL database so I can inform them with further updates. And also adds it to the registery so that it can fill this form in. Here is a screenshot from it.



    Thank you in advance.

    Abdul

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Some issues regarding setup files.

    Moved from the CodeBank

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Some issues regarding setup files.

    Try Inno Setup and the third party tools. They can do most of what you want if not everything.

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: Some issues regarding setup files.

    Do you recomment any?

    I found this function in setup.vbp.

    How can I change the background color?


    VB Code:
    1. Private Sub DrawBackGround()
    2.     Const intBLUESTART% = 255
    3.     Const intBLUEEND% = 0
    4.     Const intBANDHEIGHT% = 2
    5.     Const intSHADOWSTART% = 8
    6.     Const intSHADOWCOLOR% = 0
    7.     Const intTEXTSTART% = 4
    8.     Const intTEXTCOLOR% = 15
    9.     Const intRed% = 1
    10.     Const intGreen% = 2
    11.     Const intBlue% = 4
    12.     Const intBackRed% = 8
    13.     Const intBackGreen% = 16
    14.     Const intBackBlue% = 32
    15.     Dim sngBlueCur As Single
    16.     Dim sngBlueStep As Single
    17.     Dim intFormHeight As Integer
    18.     Dim intFormWidth As Integer
    19.     Dim intY As Integer
    20.     Dim iColor As Integer
    21.     Dim iRed As Single, iBlue As Single, iGreen As Single
    22.    
    23.     '
    24.     'Get system values for height and width
    25.     '
    26.     intFormHeight = ScaleHeight
    27.     intFormWidth = ScaleWidth
    28.  
    29.     If Len(ReadIniFile(gstrSetupInfoFile, gstrINI_SETUP, gstrINI_COLOR)) = 0 Then
    30.         iColor = intBlue
    31.     Else
    32.         iColor = CInt(ReadIniFile(gstrSetupInfoFile, gstrINI_SETUP, gstrINI_COLOR))
    33.     End If
    34.     'Calculate step size and blue start value
    35.     '
    36.     sngBlueStep = intBANDHEIGHT * (intBLUEEND - intBLUESTART) / intFormHeight
    37.     sngBlueCur = intBLUESTART
    38.  
    39.     '
    40.     'Paint blue screen
    41.     '
    42.     For intY = 0 To intFormHeight Step intBANDHEIGHT
    43.         If iColor And intBlue Then iBlue = sngBlueCur
    44.         If iColor And intRed Then iRed = sngBlueCur
    45.         If iColor And intGreen Then iGreen = sngBlueCur
    46.         If iColor And intBackBlue Then iBlue = 255 - sngBlueCur
    47.         If iColor And intBackRed Then iRed = 255 - sngBlueCur
    48.         If iColor And intBackGreen Then iGreen = 255 - sngBlueCur
    49.         Line (-1, intY - 1)-(intFormWidth, intY + intBANDHEIGHT), RGB(iRed, iGreen, iBlue), BF
    50.         sngBlueCur = sngBlueCur + sngBlueStep
    51.     Next intY
    52.  
    53.     '
    54.     'Print 'shadowed' appname
    55.     '
    56.     CurrentX = intSHADOWSTART
    57.     CurrentY = intSHADOWSTART
    58.     ForeColor = QBColor(intSHADOWCOLOR)
    59.     Print Caption
    60.     CurrentX = intTEXTSTART
    61.     CurrentY = intTEXTSTART
    62.     ForeColor = QBColor(intTEXTCOLOR)
    63.     Print Caption
    64. End Sub
    Last edited by asgsoft; Sep 17th, 2006 at 10:22 AM.

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Some issues regarding setup files.

    Quote Originally Posted by asgsoft
    Do you recomment any?
    I thought I just Did...

    BTW: The are where the comment says "Paint blue screen' would probably be a good starting place.

    There is someone on the forum who would know. You might want to ask RobDog888 or RhinoBull.
    Last edited by randem; Sep 17th, 2006 at 07:18 PM.

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Feb 2005
    Posts
    163

    Re: Some issues regarding setup files.

    I tried Inno Setup as you recommended and I found it great. But I would love to change the way it looks, colors etc

  7. #7
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Some issues regarding setup files.

    For me its easier to modify the setup's background gadint color by editing the setupo.lst file.

    Find the section named "[Setup]" and add an entry for "Color".

    Ex:

    [Setup]
    Color=8

    There are only the standard 16 color support for this. I forget which numbers relate to each color but shouldnt be hard to test out.

    For the registration I would suggest looking at MartinLiss' example - http://vbforums.com/showthread.php?t=232146
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Some issues regarding setup files.

    You can change the way Inno looks. You have to look in the help documentation. It is there...
    Last edited by randem; Sep 17th, 2006 at 07:22 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
  •  



Click Here to Expand Forum to Full Width