Results 1 to 6 of 6

Thread: [RESOLVED] Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(

  1. #1

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Resolved [RESOLVED] Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(

    Hi Everyone,

    I don't know where to start, but I'm just gonna have to go ahead ...

    I have created an installer using Distribution Wizard (P&DW) of VB6 Prof Japanese Version. and Even if I use the default settings and error would occur that says.. file not found... This is really the only thing I can say...
    I mean I have created other installers before on an english version using the default options and it runs fine.
    The error it seems is generated by the Setup1.exe and I don't know how to solve it.

    According to some site, one of the errors could be because the usename installing the exe has M-characters on their login and so I changed that.. but then it still says files cannot be found. help please.

    I have attact the lst file... perhaps at least that you can help me with the problem?

  2. #2
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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

  3. #3

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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

  4. #4

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    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:
    1. 'This IS THE ORGINAL CODE SUPPOSED TO BE LIKE
    2.   gsTEMPDIR = String$(255, 0)
    3.   lChar = GetTempPath(255, gsTEMPDIR)
    4.   gsTEMPDIR = Left$(gsTEMPDIR, lChar)
    5.   AddDirSep gsTEMPDIR
    6.   gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
    7.   AddDirSep gsTEMPDIR

    Quote 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:
    1. 'THIS IS THE CODE FIX
    2.   gsTEMPDIR = String$(255, 0)
    3.   lChar = GetTempPath(255, gsTEMPDIR)
    4.   Dim s As String
    5.   s = StrConv(gsTEMPDIR, vbFromUnicode)
    6.   s = LeftB(s, lChar)
    7.   gsTEMPDIR = StrConv(s, vbUnicode)
    8.   AddDirSep gsTEMPDIR
    9.   gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
    10.   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.

  5. #5

    Thread Starter
    Frenzied Member oceanebelle's Avatar
    Join Date
    Jun 2005
    Location
    my n00k.
    Posts
    1,064

    Re: Distribution Wizard (P&DW) generated Installer Generates an Error when Run. :(

    Here is my modified code...

    VB Code:
    1. 'Solution to File Not Found Problem for japanese version P & D Wizard
    2.     'gsTEMPDIR = String$(255, 0)
    3.     'lChar = GetTempPath(255, gsTEMPDIR)
    4.     'gsTEMPDIR = Left(gsTEMPDIR, lChar)
    5.     'AddDirSep gstrSrcPath
    6.    
    7.     gsTEMPDIR = String$(255, 0)
    8.     lChar = GetTempPath(255, gsTEMPDIR)
    9.     Dim s As String
    10.     s = StrConv(gsTEMPDIR, vbFromUnicode)
    11.     s = LeftB(s, lChar)
    12.     gsTEMPDIR = StrConv(s, vbUnicode)
    13.     AddDirSep gsTEMPDIR
    14.    
    15.     gsCABNAME = gstrSrcPath & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gstrINI_CABNAME)
    16.     gsCABNAME = GetShortPathName(gsCABNAME)
    17.     gsCABNAME = gstrWinDir & BaseName(gsCABNAME)
    18.     'gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
    19.     'AddDirSep gsTEMPDIR
    20.     gsTEMPDIR = gsTEMPDIR & ReadIniFile(gstrSetupInfoFile, gstrINI_BOOT, gsINI_TEMPDIR)
    21.     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

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    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 PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI 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
  •  



Click Here to Expand Forum to Full Width