![]() |
#1
|
|||
|
|||
![]()
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 |
#2
|
||||
|
||||
![]() Quote:
I will keep you all posted... |
#3
|
|||
|
|||
![]()
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 |
#4
|
|||
|
|||
![]()
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 ![]() |
#5
|
|||
|
|||
![]()
Thanks Seelenquell, I'll give it a try, asap
|
#6
|
|||
|
|||
![]()
hi there again!
sorry, i forgot to mention that this code is for VB6.. the program in englisch is attached.. happy weekend! |
#7
|
|||
|
|||
![]()
Alex, what about your installer?
|
#8
|
||||
|
||||
![]() |
#9
|
|||
|
|||
![]()
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. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installer program; toolbar icon. | narcix | CorelDRAW/Corel DESIGNER VBA | 1 | 12-05-2004 14:22 |