Results 1 to 31 of 31

Thread: Desktop Shortcut ? [Resolved]

  1. #1

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Resolved Desktop Shortcut ? [Resolved]

    I thought that I could get a shortcut on the desktop, but didn't get one yesterday. The shortcut on the start menu it fine, and uses my icon.
    I just need the desktop link.

    Can someone help?
    Last edited by dglienna; Mar 26th, 2005 at 03:01 PM.

  2. #2

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    No clue? Any other installer?

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

    Re: Desktop Shortcut with P&D Wizard ?

    You would have to modify the P&D Wizard setup project to include code to create a desktop shortcut.
    Make a copy of the project before you make mods. Then compile and use the new exe to package your program.

    Your other option is to use another installer like Inno Setup & **********. ********** scripts Inno Setup so its
    easier to package. ********** can create desktop shortcuts.
    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

  4. #4

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    I found a link to re-compiling the wizard. Now I wonder which would be easier?
    I was surprised that the wizard didn't choke with my mailmerge app. Now I need the desktop shortcut if it is at all possible.

    I guess I would like to have it in my other apps, so I'm leaning towards using the wizard, unless someone thinks that using Inno would be simpler. This would also mean using Inno in the future for all projects with the D.I.

    What about the Visual Installer? I know that you can do it with Net apps, and imagine that you could use VB for it.

    The question is which is the easiest method?

    - Re-compile P&D Wizard (setup1.exe)
    - Learn Inno
    - Learn Visual Installer

  5. #5
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    If youu are having trouble with PDW then Use ********** This will help you use Inno Setup and automatically create a Shortcut for you.

  6. #6
    Lively Member
    Join Date
    Dec 2004
    Posts
    121

    Re: Desktop Shortcut with P&D Wizard ?

    I add a setup project from the VS IDE to my applications and use the P&D wizard. It's easy. There is a step where you indicate that you want to add the application to the start menu and to the user's desktop. You have to make sure you set up a shortcut for both the desktop and the start menu. It's a two step process.

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

    Re: Desktop Shortcut with P&D Wizard ?

    Like I said before but with an explaination, go with Inno Setup & ********** since you are using this
    for professional distribution. Inno looks more professional and has more flexibility in doing all the extras.
    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

  8. #8

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    Inno Script is down or something. I get 500 Internal Server Error
    I'll try later.

    Is the Auto Update Installer good for all versions of Windows and Office?
    I noticed the last update was last August for the full version, and December for the others.

  9. #9
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    The link is active just a little slow on weekends when they do backups and maintenence. The Automatic OS Updater (full version) is good for all versions or you can choose the specific one that you want.

  10. #10

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    OK. Inno setup is complaining about msbind.dll, and won't compile.
    It is on the unsafe file list, whatever that is. How do I get around this error.
    Inno script seems to have deleted 1 file, but it doesnt say which one

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    Take a look at your run log. It has all the information from the run and the missing file if ********** removed it. If a file should not be included in the installation it is probably because it is distributed in an SP which is installed seperately.

    Did you install the Automatic OS Updater first?

  12. #12

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    When I ran **********, i select the autoupdater to be included. i used the vpb file to create the dependencies, and it creates the list. I try and compile the script and get the error for msbind, which has to be regiistered.

    Afterwards is the autoupdater.

    Source: c:\windows\system32\msbind.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile

    is where it is failing.

    do i have to actually run the autoupdater on my system? I thought I just had to include it to let it update user's systems.

    it's odd because msbind isn't in the script un safe list to begin with!


    There is no run log as it doesn't get compiled.

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    Upload the vbp file and I will take a look to see what I get when i run ********** on it.

  14. #14

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    Here it is.
    ********** runs fine. it just doesn't get compiled.
    Last edited by dglienna; Mar 20th, 2005 at 08:51 PM.

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    I have created the script from your vbp file and attempted to compile it with Inno Setup. All that happens is that Inno Setup will not allow MSBIND.DLL to be taken from the systems folder.

    Either you copy this file to another folder and use it from there or remove it from the script. I believe one of the SP's installs this file anyway.
    Last edited by randem; Mar 20th, 2005 at 01:58 PM.

  16. #16

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    So I would just move it to a different folder, and then change the path that registers it in the script? I already have a folder that contains all of the documents for the project. I think the folder copy statement is below the registration. That means it will copy twice. Will that be a problem?

  17. #17
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut with P&D Wizard ?

    dglienna,

    How would changing the path that the file is going to get taken from copying files in the script? On your computer copy the MSBIND.DLL to your working folder and have the location in the script to the file change accordingly.

  18. #18

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut with P&D Wizard ?

    OK. That solved that problem. The only oddity is that it wanted to install the app on my machine right after the compile. The other thing was that the setup prgram name was not set, so I am re-compiling it right now.

    Thanks for you help!

    Not quite as painless as P&D, but in the end, it was better!

  19. #19

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST - [Resolved]

    Still having problems. On one machine the app couldn't find the db, but it was found with the P&D version on Friday. This machine had Office.

    Then I installed it on my machine, and it couldn't find a couple of files, then ran the updater, then i had to restart. (this computer did not have office)

    Then, when I tried to open a form, I got a series of errors saying that the app couldn't bind the db field to the text field. it showed that there were 6 records, but it didn't show any of the information.

    I don't know what the problem is, and don't know where to begin.
    Last edited by dglienna; Mar 20th, 2005 at 08:53 PM.

  20. #20
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut ? ALMOST -

    Microsoft Word 10.0 Object Library probably needs word installed to be used. Check with MS on this. As far as the app is concerned you either need to remove the location for the db in the app and let it default to the same location as the app or allow in your app to accept a new location for the db.

  21. #21

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    1) word isn't installed, so the activex component can't be created on my pc, but it finds the db, it just can't bind to the records. this is OK, we expect it.

    2) on clients pc, it can't seem to find the db's it doesn't show the errors, but he can't add data as the db is not found.

    The app installed correctly both places with the p&d wizzard. It worked correctly in both places (including the activex error on my pc) but it showed the db in both locations. I think it is a version problem, but don't know what to do.

    I am using MDAC 2.8 and the auto-installer. it required a reboot on both machines, which had the correct files to begin with. it must have changed them.

  22. #22
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut ? ALMOST -

    dglienna,

    Post your script and I will take a look at it.

  23. #23

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    OK. I'll put it up for a minute.


    hope you can see something about it. I tried to update the W2K WS, There was a db update, but it didn't get the db to bind with the text fields.
    Last edited by dglienna; Mar 22nd, 2005 at 02:24 PM.

  24. #24

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    Hope you looked at it. I tried to send you a PM

    I need to resolve this problem. Please let me know what you think I can do!

  25. #25
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut ? ALMOST -

    dglienna,

    A few things... You did not include the db in the installation so it should be impossible to find it if it was never installed. Use the Add Files button in ********** 4.0.3. The default location {App} will work fine as long as your app does not use and folder location to point to the db. Is the db in the FilesNeeded Folder? What other files are in the FilesNeeded folder?

    You are using an Office 11 component that probably needs office installed for the functions you used in your app to work.

    You should be able to compile and run your installation and have the db found.

    {userappdata}\Microsoft\Internet Explorer\Quick Launch\Project1; this name is gotten from your vbp file name. Look in your project properties (in VB) and change this name to something more reconizible.
    Last edited by randem; Mar 23rd, 2005 at 03:54 AM.

  26. #26

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    A few things... You did not include the db in the installation so it should be impossible to find it if it was never installed.
    The db is in the Files Needed folder, with msbind.dll and a few mailmerge docs.


    You are using an Office 11 component that probably needs office installed for the functions you used in your app to work.
    The second computer has Office XP installed, yet the DB cannot be written to. On the first computer, the textboxes cannot bind to the db. The ADODC control finds 6 records, but the textfields that are bound do not appear.


    You should be able to compile and run your installation and have the db found.
    The Not Found error is when trying to write a new record on system 2. The record binding error appear on system 1.


    {userappdata}\Microsoft\Internet Explorer\Quick Launch\Project1; this name is gotten from your vbp file name. Look in your project properties (in VB) and change this name to something more reconizible.

    Thanks. I noticed that the shortcut name was Project1, and was going to change it, but I wanted to get the other problem out of the way first.


    The app works perfectly when deployed with the wizard. Reverting to that install corrects things on system 2. I could understand the problem being on system 1 without office, but problems on system 2 should not exist. If the db had been missing, I would have felt bad, but I clipped a jpeg to show that it was there when the script was compiled. Please see if there is any other reason that things would work using the wizard but not using inno!

    Thanks in advance. Let me know if I should do anything differently. I am thinking of re-compiling and sending it to system 3 for installation. I will change the project name.
    Attached Images Attached Images  
    Last edited by dglienna; Mar 23rd, 2005 at 04:48 AM.

  27. #27
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut ? ALMOST -

    dglienna,

    You are copying the db to the {app}\FilesNeeded folder. Does your app look for it in the installed location? This is the most common cause for failure. That location can easily change and if your app does not take this into consideration, the db will not be found.

    Check to see if the db is read only when you install it and the user has the appropiate rights for the installed location.

    Post your setup.lst file from the wizard. I would like to see if there is a difference in what you are installing between the two.

  28. #28

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    I thought it was copying it from the FilesNeeded to the app.path. That would make sense, but to have an app\filesneeded folder wouldn't. I would think that they went into the app folder only.
    Attached Files Attached Files

  29. #29

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    Sure enough. MSBIND.DLL and all my necessary files are in a FilesNeeded folder.
    Why is this? Won't inno put them in the app.path like they should be? I guess I could recompile to look there, but I don't see the point.

    So, what can I do to put MSBIND.DLL as well as my docs and db into the App.Path? Or should I adjust the app.path to look in the FilesNeeded folder instead? At this point, it really doesn't matter.

    With the wizard, I just pointed to the folder of needed files, and they were added to the app.path. Thats why i thought inno was doing the same. I have to recompile anyways, so I'll wait to see what you say.
    Last edited by dglienna; Mar 23rd, 2005 at 05:42 PM.

  30. #30
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Desktop Shortcut ? ALMOST -

    dglienna,

    Inno Setup will put the files whereever you tell it to. Your source line in the script look like this:

    Source: C:\Documents and Settings\David Glienna\My Documents\FilesNeeded\*.*; DestDir: {app}\FilesNeeded; Flags: ignoreversion

    and should look like this:

    Source: C:\Documents and Settings\David Glienna\My Documents\FilesNeeded\*.*; DestDir: {app}; Flags: ignoreversion

    To get those file into the app folder.
    Last edited by randem; Mar 24th, 2005 at 03:38 PM.

  31. #31

    Thread Starter
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Desktop Shortcut ? ALMOST -

    Thanks. I'm sending the new version off right now.

    Would you mind taking the email address out of the last post.
    I figured it out. I wish I had known that it was going to do that.
    Now, I'll look out for things like that in the future.

    I was thinking about going back to the wizard, but as long as I can get things running the way that I want, I'll stick with Inno Script and Setup. I like the auto OS updater. Greate for slow connections.
    Last edited by dglienna; Mar 26th, 2005 at 03:01 PM.

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