OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-02-2004, 05:15
ssb
Guest
 
Posts: n/a
Default Installer for GMS

Please I need some macro installation help.
Things like a method to detect if VBA is installed, CorelDRAW & GMS directory, and the rest installer stuff.
Any idea, how to create a coreldraw (v10 & v11) shortcut key or menu entry for my macro, programatically from the installer ?

I'd appreciate any help

Thanks
Reply With Quote
  #2  
Old 02-02-2004, 08:11
Alex's Avatar
Alex Alex is offline
Administrator
 
Join Date: Nov 2002
Posts: 1,941
Blog Entries: 4
Default Re: Installer for GMS

Quote:
Originally Posted by ssb
Please I need some macro installation help.
Things like a method to detect if VBA is installed, CorelDRAW & GMS directory, and the rest installer stuff.
Any idea, how to create a coreldraw (v10 & v11) shortcut key or menu entry for my macro, programatically from the installer ?
I'm currently (slowly) working on the installer for GMS modules which will include all of the aforementioned features and then some. The problem is that I don't have that much time to spend on the project at the time so it doesn't move along as fast as I would want. But I will try my best and create the installer sooner than later as I understand that there are a lot of people who would use it now.

I will keep you all posted...
Reply With Quote
  #3  
Old 03-02-2004, 01:20
ssb
Guest
 
Posts: n/a
Default

That would be great Alex,
even some technical info about registry settings, workspace customization and sharing and the rest stuf, could help us all.

Thanks
Reply With Quote
  #4  
Old 13-02-2004, 06:30
Seelenquell
Guest
 
Posts: n/a
Default a simple little GMS-Installer

hi there!

yesterday i made a little program that installs my gms-files.

it lists all gms-files in the exe-folder and you can mark all entrys like in windows (ctrl+click, shift+click), then you select 'install' and it should work.. (works for me anyway)

all you need is a button 'install', a listbox 'gmslist' and a 'cancel'-button..
and the windows-scripting-host..

tell me if there are any errors..




Code:
Option Explicit
Private instpath As String
    
Private Sub cancel()
    Unload Me
End Sub

Private Sub Form_Load()
    Dim regvba As String
    regvba = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VBA\Vbe6DllPath")
    If Len(regvba) < 1 Then
        MsgBox "VBA isn´t installed!"
        Unload Me
    End If
    instpath = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Corel\Setup\Corel Graphics Suite 11\Destination") & "draw\gms\"
    Call testgms
End Sub

Private Sub testgms()
    Dim name1 As String
    name1 = Dir(App.Path & "\" & "*.gms", vbDirectory)
    Do While name1 <> ""
        If name1 <> "." And name1 <> ".." Then
            If ((GetAttr(App.Path & "\" & name1)) = vbArchive) Then
                gmslist.AddItem name1
            End If
        End If
    name1 = Dir
    Loop
End Sub

Public Function RegRead(Path As String) As String
  Dim ws As Object

  On Error GoTo ErrHandler
  Set ws = CreateObject("WScript.Shell")
  RegRead = ws.RegRead(Path)
  Exit Function

ErrHandler:
  RegRead = ""
End Function


Private Sub Form_Terminate()
    Unload Me
End Sub

Private Sub install_Click()
    If Len(instpath) > 0 Then
        Dim i As Integer
        For i = 0 To gmslist.ListCount - 1
            If gmslist.Selected(i) Then
                FileCopy App.Path & "\" & gmslist.List(i), instpath & gmslist.List(i)
            End If
        Next i
        MsgBox "GMS-files were installed!"
        Unload Me
    Else
        MsgBox "Corel 11 not installed?" & Chr(10) & Chr(10) & "another possibility:" & Chr(10) & "Windows-Scripting-Host not 

installed" & Chr(10) & "(required)"
        Unload Me
    End If
End Sub
happy weekend
Reply With Quote
  #5  
Old 13-02-2004, 07:22
ssb
Guest
 
Posts: n/a
Default

Thanks Seelenquell, I'll give it a try, asap
Reply With Quote
  #6  
Old 13-02-2004, 07:34
Seelenquell
Guest
 
Posts: n/a
Default the program

hi there again!

sorry, i forgot to mention that this code is for VB6..

the program in englisch is attached..

happy weekend!
Attached Files
File Type: zip VBA-Installer-English.zip (7.3 KB, 978 views)
Reply With Quote
  #7  
Old 09-02-2005, 14:21
zlatev
Guest
 
Posts: n/a
Default Any progress?

Alex, what about your installer?
Reply With Quote
  #8  
Old 09-02-2005, 14:54
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default

Read this post alex just made:

http://www.oberonplace.com/forum/viewtopic.php?t=874

Shelby
Reply With Quote
  #9  
Old 15-02-2005, 02:22
Jab
Guest
 
Posts: n/a
Default

Hi!

Free ware Pascal-base Windows Installer (Inno Setup) is here:

http://www.jrsoftware.org/striprlc.htm

But Inno add 200-300 kBt to macros code.

Good luck.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installer program; toolbar icon. narcix CorelDRAW/Corel DESIGNER VBA 1 12-05-2004 14:22


All times are GMT -5. The time now is 05:43.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com