Armenian Knowledge Base  

Go Back   Armenian Knowledge Base > Technical sections > Languages, Compilers, Interpreters
Register

Reply
 
LinkBack Thread Tools
Old 26.05.2003, 08:00   #1
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default Visual Studio: Package and Deployment Wizard Problem

I have a Visual Basic project and want to make Setup Package file for it. I use Package and Deployment Wizard in Visual Studio.
It makes setup files, but give such error on installation:

-----
Invalid line in setup information file
Section 1: Setup files
@comdlg32.ocx; $(WinSysPath)...
-----

(I use Common Dialog component in my project)

Can you tell me the way how to make setup installation package?
Reply With Quote
Old 26.05.2003, 08:19   #2
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

in order to create an install-project U have to add all components required by your app.

in this particular case "comdlg32.ocx" component is not in a list of files to be installed.

Note that ActiveX components couldn't be simply copied during installation - they need registration on a client machine, too (read manuals).

hope this helps.
__________________
И повешенные могут качаться в неположенную сторону. /С.Е.Лец/
Reply With Quote
Old 26.05.2003, 08:34   #3
Web developer
 
Aram Ghazanchyan's Avatar
 
Join Date: 09 2002
Location: Yerevan
Age: 36
Posts: 896
Downloads: 1
Uploads: 0
Reputation: 9 | 0
Default

But I'm checking that component in list when making setup. How can I copy that ActiveX compnonent to client machine registry? I couldn't find it im manual
Reply With Quote
Old 26.05.2003, 15:04   #4
Академик
 
greka's Avatar
 
Join Date: 09 2001
Location: inside myself
Posts: 5,369
Downloads: 0
Uploads: 0
Reputation: 18 | 5
Default

Quote:
Originally posted by Aram Ghazanchyan
But I'm checking that component in list when making setup. How can I copy that ActiveX compnonent to client machine registry? I couldn't find it im manual
I'm not aware of events covered by MS VStudio Package and Deployment Wizard, but I guess yuo have to have the possibility to use "AfterInstall" event of all components u're installing.
So there you have to write shell-code like:

"regsvr32 <my_path_where_component_have_been_installed\>MyActiveX.ocx"

to unregister component (i.e. on Uninstall) use:
"regsvr32.exe /u MyActiveX.ocx"

try this.
Reply With Quote
Sponsored Links
Reply

Thread Tools


На правах рекламы:
реклама

All times are GMT. The time now is 10:48.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.