|
-
Jul 18th, 2006, 04:14 PM
#1
Thread Starter
Junior Member
VB6 package file not working
Hello,
I am trying to make an exe file that when rau, deploys the files joined to it to specific directories list in the code of the package exe.
It deploys all the files, but the problem is that one of the exe files it deploys does not work after (works fine on its own).
Could this be because it was compressed or maybe I have to adjust my code so that exe's work when deployed.
Please have a look:
VB Code:
Sub Main()
Dim FileNum As Integer
Dim DataArray() As Byte
DataArray = LoadResData(101, "CUSTOM")
FileNum = FreeFile
Open "C:\MyProgram.exe" For Binary As #FileNum
Put #FileNum, 101, DataArray()
Close #FileNum
Erase DataArray
End Sub
Thanks anyone
-
Jul 18th, 2006, 05:21 PM
#2
Re: VB6 package file not working
Moved.
Are you using the P&D Wizard? What is "rau"?
-
Jul 18th, 2006, 05:57 PM
#3
Re: VB6 package file not working
I think "rau" is run or ran.
Looks like your trying to extract a resource file from the exe and do nothing with it?
Also, its hard to determine what the issue is as you have no error trapping either.
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Jul 18th, 2006, 08:46 PM
#4
Re: VB6 package file not working
He's not using an installer. He is attempting to shortcut the installation process with a resource file. I am not sure he fully understand what needs to be done on an installation.
I know I would not want to run a very large exe that had to deploy many files before it would run. Hopefully they get deployed properly each time.
-
Jul 19th, 2006, 06:05 AM
#5
Thread Starter
Junior Member
Re: VB6 package file not working
What does P&D stand for in this Wizard you mention.
Could you give me some error trapping code so that we can see what the problem is please.
Just trying to deploy the file, not trying to run it with the package although I do want it to be able to run after the package has been executed.
Cheers
John
-
Jul 19th, 2006, 06:16 AM
#6
Thread Starter
Junior Member
Re: VB6 package file not working
Got the P&D part - packaging and deployment.
Found the P&D wizard source also although very complex to understand.
I guess I just need error trapping to see the problem and then extra code to resolve the problem.
Cheers
-
Jul 19th, 2006, 03:31 PM
#7
Re: VB6 package file not working
If you package it properly you won't need to go through what you are doing. Look in the Application Deployment section in the FAQ for more options.
-
Jul 19th, 2006, 04:26 PM
#8
Thread Starter
Junior Member
Re: VB6 package file not working
Ive looked at what you said and Inno seems to be quite complex, I think ill use the P&D wizard of VB6.
Do I just compile this and make the exe then run it - if so i have tried this and i get various errors when running?
Cheers
-
Jul 20th, 2006, 12:35 AM
#9
Re: VB6 package file not working
Run what? I have no clue of what you are doing. You have to explain better. Inno Setup has great support and other tools which can help you get your script done.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|