|
-
Aug 2nd, 2005, 08:23 PM
#1
Thread Starter
Frenzied Member
-
Aug 2nd, 2005, 10:27 PM
#2
Re: Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(
I have herd about errors with the P&D Wiz when it comes to languages othe then English. Have you searched the Forums for anything yet? I'll see if I can find the thread dealing with a Chineese language pack, I think it was. Should have some clue of to whats going on.
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 
-
Aug 2nd, 2005, 11:28 PM
#3
Thread Starter
Frenzied Member
Re: Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(
I have found... err. well the japanese found a site describing about this bug.. and here is the solution... I'll just post it here so that people could refer to it also...
but I can't post the link... just the content ok
-
Aug 2nd, 2005, 11:39 PM
#4
Thread Starter
Frenzied Member
Re: Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(
*I'll just try to rephrase the translation based on my understanding*
No File Found Error
When the user name that made the package in [vb6 and NT] has M-width characters, the following code should be corrected to the one that follows in order for the above error to be avoided
Note this code is in the Setup Toolkit project.
When done editing, compile the setup1 project overwrite the existing exe found on the parent location of the setup toolkit project
Mine was C:\Program Files\Microsoft Visual Studio\VB98\Wizards\PDWizard and the project was found in the Setup1 folder under the said directory
Note: Make sure you have saved a backup copy of the original .. just in case.. but mine I edited the original too... since it IS a bug. 
Look for a code similar to this one in the Form_Load Event of Setup1.frm, for me this is the code just before showing the Setup1 form
VB Code:
'This IS THE ORGINAL CODE SUPPOSED TO BE LIKE
gsTEMPDIR = String$(255, 0)
lChar = GetTempPath(255, gsTEMPDIR)
gsTEMPDIR = Left$(gsTEMPDIR, lChar)
AddDirSep gsTEMPDIR
gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
AddDirSep gsTEMPDIR
 Originally Posted by explanation translated by software... sorry about it :(
To lChar The number of bytes as DBCS is returned. By the following line At this time though only the TMP folder name is extracted It is a number of characters in the second argument of the Left function It is necessary to pass (UNICODE). the number of bytes (DBCS) is preserved Because IChar is specified, The folder name cannot be correctly acquired. Passing acquired as follows Convert it into DBCS After it extracts it as a character string of the lChar byte A correct folder name comes to be processed by returning it to UNICODE .
VB Code:
'THIS IS THE CODE FIX
gsTEMPDIR = String$(255, 0)
lChar = GetTempPath(255, gsTEMPDIR)
Dim s As String
s = StrConv(gsTEMPDIR, vbFromUnicode)
s = LeftB(s, lChar)
gsTEMPDIR = StrConv(s, vbUnicode)
AddDirSep gsTEMPDIR
gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
AddDirSep gsTEMPDIR
P.S. Before you change the code in Setup1 project please read all about the Setup Toolkit in MSDN first.
Last edited by oceanebelle; Aug 2nd, 2005 at 11:58 PM.
-
Aug 2nd, 2005, 11:45 PM
#5
Thread Starter
Frenzied Member
Re: Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(
Here is my modified code...
VB Code:
'Solution to File Not Found Problem for japanese version P & D Wizard
'gsTEMPDIR = String$(255, 0)
'lChar = GetTempPath(255, gsTEMPDIR)
'gsTEMPDIR = Left(gsTEMPDIR, lChar)
'AddDirSep gstrSrcPath
gsTEMPDIR = String$(255, 0)
lChar = GetTempPath(255, gsTEMPDIR)
Dim s As String
s = StrConv(gsTEMPDIR, vbFromUnicode)
s = LeftB(s, lChar)
gsTEMPDIR = StrConv(s, vbUnicode)
AddDirSep gsTEMPDIR
gsCABNAME = gstrSrcPath & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gstrINI_CABNAME)
gsCABNAME = GetShortPathName(gsCABNAME)
gsCABNAME = gstrWinDir & BaseName(gsCABNAME)
'gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
'AddDirSep gsTEMPDIR
gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
AddDirSep gsTEMPDIR
But I think... unicode is one of the problems but another one was a problem and that is this one
'AddDirSep gstrSrcPath
actually the error I get all the time is that... the Source for the files is in this form
srcpath\\filetoadd.ext
so aside from adding the fix to the bug.. I removed that line... and exchanged it for
AddDirSep gsTEMPDIR
and so now it works fine. no more.. double backslashes... and it is not described in the bug fix as well. so
-
Aug 2nd, 2005, 11:47 PM
#6
Re: [RESOLVED] Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(
Thanks for posting the translation of the answer. I'm sure others will benefit from your find.
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 
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
|