Results 1 to 15 of 15

Thread: Add-In installation

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145

    Add-In installation

    I've developed Add-In for Excel (.xla).
    Now I want to pack it in any self-extracted .exe.
    That .exe will run on the client's computer, remove previous version of this Add-In (if exists) and install current version.

    Thanks,

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    If you have a copy of vb, you'll have a package & deployment wizard which allows you to create setup/installation applications.

    The package & deployment wizard comes as a sample vb application with full source code which allows you to modify the forms & add your own code (i.e. check for your file & delete it if it exists).

    Alternatively, again if you have vb installed, you can create your own setup program from scratch (take a look here... ).

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Originally posted by alex_read
    If you have a copy of vb, you'll have a package & deployment wizard which allows you to create setup/installation applications.

    The package & deployment wizard comes as a sample vb application with full source code which allows you to modify the forms & add your own code (i.e. check for your file & delete it if it exists).

    Alternatively, again if you have vb installed, you can create your own setup program from scratch (take a look here... ).
    You did not understand me...
    I don't have VB project, this is Add-In for Excel (only one .xla file).
    I don't need to build setup package, but self-extracted .exe...

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    You'd have to purchase a copy of a program that can create self
    extracting exes. VB could do something like this but it would be
    like Alex suggested with the P&D Wizard.

    If you had a program that creates self-extracting exes then it
    would still be up to the user to designate the correct folder for
    overwritting the original xla file of the add-in.

    I think you best option is to use VB to detect the location of the
    add-in and copy over the new xla file. You could then use the self
    extracting exe program to "package" the vb files needed. Then
    when the user ran the extract and ran the vb program it would
    do its magic. But the P&D Wizard already comes with VB so why
    not use it?

    HTH
    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

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Oct 2002
    Posts
    145
    Originally posted by RobDog888
    You'd have to purchase a copy of a program that can create self
    extracting exes. VB could do something like this but it would be
    like Alex suggested with the P&D Wizard.

    If you had a program that creates self-extracting exes then it
    would still be up to the user to designate the correct folder for
    overwritting the original xla file of the add-in.

    I think you best option is to use VB to detect the location of the
    add-in and copy over the new xla file. You could then use the self
    extracting exe program to "package" the vb files needed. Then
    when the user ran the extract and ran the vb program it would
    do its magic. But the P&D Wizard already comes with VB so why
    not use it?

    HTH
    OK. I can write VB program that checks current settings, uninstall old .xla and copy current version to the right location...
    But how can I pack this VB .exe and my .xla into 1 .exe file?
    P&D creates setup package that contains several files (at least 2: setup.exe and .cab) and it's rather big... This .xla will be distributed via Web and it's very important that installation is as small as possible (only .xla is about 2 MB) and the process of installation is as simple as possible.

  6. #6
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709
    Oh, ok. Using the P&D Wiz, you can specify to make several cab
    files so the user can download them one at a time. You can also
    use p&d to deploy the package to your websever using the
    Deploy button on the first screen.

    If this is not acceptable then the only other option is to use
    another packaging program. There are several that work well and
    there are some that are free too.

    HTH
    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

  7. #7
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add-In installation

    WinZip allows you to make self-extracting exe files. You can even specify the location to put the files. I think it will overwrite files with the same name, also.
    I don't know if the option is free (or in the trial program), but it isn't very expensive to buy. I will make an .exe of your zip file if you want. PM me, and give a link to this thread, where I can find the .zip file, and the folder that you want to unzip to.

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

    Re: Add-In installation

    Dave, isn't there something with the trial version not allowing you to create self-extracting exe's.
    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

  9. #9
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add-In installation

    I think so. I have a good copy, though.

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

    Re: Add-In installation

    I just checked and you can use the free Personal Self Extractor with
    your purchased version of WinZip, but if you want to be able to run your
    setup program after it self-extracts, you need to buy WinZip's Selft Extractor
    utility separately for $49 in addition to the cost for WinZip itself.


    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

  11. #11
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add-In installation

    You mean that they don't extract automatically if you don't have the self extractor? I thought that anything that you zip can be made into a self extractable file, that didn't require WinZp. Or are you saying that they only extract using WinZip? The registered one, or an additional SE one?

    I just tried making an exe out of a zip. the SE came up automatically. Are you sure that it doesn't work without registering WinZip?
    Last edited by dglienna; Dec 6th, 2004 at 12:17 AM.

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

    Re: Add-In installation

    Not sure. I was just reading the info from their website.

    You can make the same compatible "zip" program. They use a freeware
    code posted in the disclaimer, I think its called, stating such.

    But getting back to yurich's original question, I think you can use it but the
    user that is extracting it may see some kind of screen or something? Not
    100% sure. Yurich's need to read up on it more at their site.
    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

  13. #13
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add-In installation

    I just extracted an .exe on my W2K machine, which doesn't have WinZip on it, so I guess it will work anywhere!

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

    Re: Add-In installation

    Does it still have a nag screen or inform the user it was created with an
    eval version. I thought there was something about either of those as
    drawbacks for using the Personal ed. Self-Extractor version.
    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

  15. #15
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Add-In installation

    nope.. it asks if i want to run it with WinZip. When i clicked YES, it told me that it wasnt installed. this was after I unzipped it automatically.

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