Winrar+license in one setup, How? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

MXM
Posts: 5
Joined: Wed Sep 25, 2013 7:14 am

Winrar+license in one setup, How?

Hi

i ma trying to build Winrar+license in one setup, of course the license should be copied to the directory of the winrar after installation, as follow:

C:\Program Files\WinRAR

please how can i build one setup for both of them, i tried but no succeed.

i will use SCCM 2012 SP1 for deploying it.

thank you in advance
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Winrar+license in one setup, How?

Hi and welcome to Advanced Installer forums.

In order to achieve what you want you can follow the steps below:
- go in the Prerequisites page and add the "WinRAR" application as a "Pre-install" or "Feature-based" prerequisite
- create a property-based folder and add the license file in that folder
- you can also go in the Search page and create a search to see where the "WinRAR" application was installed and use the search result for to create the property-based folder (in this case the "WinRAR" application can only be added as a "Pre-install" prerequisite)

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MXM
Posts: 5
Joined: Wed Sep 25, 2013 7:14 am

Re: Winrar+license in one setup, How?

thank you Eusebiu

to be honest with you i could not pass in the second step when you said
create a property-based folder and add the license file in that folder
- you can also go in the Search page and create a search to see where the "WinRAR" application was installed and use the search result for to create the property-based folder (in this case the "WinRAR" application can only be added as a "Pre-install" prerequisite)
i have readen the manual and i think i understand what he mean but i dont know how to do it ... sorry

if you please show me how to do the second step and third if you can, make an example of mine project winrar

now i have installer for winrar 64 bit (wrar_420_64bit.msi, it camed with the CD) or another installer i downloaded it for http://www.rarlab.com (winrar-x64-500.exe), and i got the license and it is one single file(rarreg.key), and the all our opertaing system in our work are Windows7 Enterprise 64bit.

now the winrar setup after it runs, the directory will be created C:\Program Files\WinRAR, after that to activate the winrar product we should copy the license file (rarreg.key) to this winrar directory C:\Program Files\WinRAR, soon after it is pasted the product should be activated no other action needed.

how to combine them togather, i am sorry for asking the steps with more details but i could not pass the second step, can you explain more how?

i thank you for helping
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Winrar+license in one setup, How?

Hi,

First of all, I have to mention that if you want to install a file under the "Program Files" folder, then your should go in the Install Parameters page and choose the "64-bit package for x64 processors" package type, otherwise the file will be installed under the "Program Files (x86)" folder.

If the "WinRAR" application is always installed in the "C:\Program Files\WinRAR" folder, then you can go in the Files and Folders page, right-click on the "Program Files 64" folder and select "New Folder -> Regular" to create a regular folder. Rename it to "WinRAR" and add the license file in that folder. In this case the license will be copied in the "C:\Program Files\WinRAR" folder, but don't forget to select a 64-bit package type in the Install Parameters page as I mentioned above.

If you want to create a property-based folder, you can also go in the Files and Folders page, right-click on "Target Computer", select "New Folder -> Property Based", in the newly appeared dialog click on the [New...] button and in the "New Property" dialog write the following information:
  • Name: WINRAR
    Value: C:\Program Files\WinRAR\
After the folder is created you can add the license file in it, but also don't forget to select a 64-bit package type in the Install Parameters page.

I implemented both scenarios in the attached .AIP file, but you need to choose only one of them.

Best regards,
Eusebiu
Attachments
Property-based Folder.aip
(11.38 KiB) Downloaded 769 times
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MXM
Posts: 5
Joined: Wed Sep 25, 2013 7:14 am

Re: Winrar+license in one setup, How?

thank you Eusebiu

I was testing and i had some issues, as follow:
i did the setup by the way you mentioned
go in the Files and Folders page, right-click on the "Program Files 64" folder and select "New Folder -> Regular" to create a regular folder. Rename it to "WinRAR" and add the license file in that folder. In this case the license will be copied in the "C:\Program Files\WinRAR" folder, but don't forget to select a 64-bit package type in the Install Parameters page as I mentioned above.
and the result succeeded, but when I do uninstall for the created setup it dose not uninstall winrar it just remove the license, also how can i create silent install (no progress bar) for both of them (the created setup by advanced installer+winrar).

for advanced installer i have chosen limit to basic user interface and did not work, i am still getting the window with "Next".

and as for winrar, i know that /s is the silent mode when i do it manually installing (winrar-x64-500.exe /s) but how to do it through advanced installer, or should be there another switches i should use it from advanced installer only.

i checked the documentation http://www.advancedinstaller.com/user-g ... stall.html, how to do it?

should i put in the field Silent (No UI) : winrar-x64-500.exe /qn
if its then still did not work.

my goal at the end is to deploy this setup through sccm 2012 SP1, and in the next future if i want it to uninstall it through SCCM i should can.

thank you & regards
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Winrar+license in one setup, How?

Hi,
but when I do uninstall for the created setup it dose not uninstall winrar it just remove the license
Indeed, by default the prerequisites are not uninstalled when the package that contains them is uninstalled, because they are actually different packages (prerequisite + main package).

However, you can remove the "WinRAR" folder (but its information will remain in Add/Remove Programs from Control Panel) by going in the "Operations" tab of the "WinRAR" folder's properties dialog and select the "Remove folder" option as in the example:
  • Operation: Always remove folder (even if it is not empty)
    Component: <any component that is uninstalled>
    Remove On: Component uninstall
Also, if your prerequisite is added in the "Feature-based" folder of the Prerequisites page, you can go in the "Setup Files" tab and set "Maintenance Command Lines" for it (i.e. in the "Uninstall using this command line" field add a command that uninstalls the "WinRAR" application)
also how can i create silent install
To achieve this you can follow the steps below:
- go in the Install Parameters page and check the "Run as administrator" option
- go to "Setup Files" tab of the prerequisite and add the silent command (i.e. /s) in the "Install Command Lines" fields
- go in the Media page and add the silent command (i.e. /qn) in the "MSI Command Line" field

In this case the prerequisite and the MSI package contained by the EXE Bootstrapper will be installed in silent mode. However, the EXE Bootstrapper can be installed in silent mode only from an elevated console if it is run with the "/exenoui" command.
for advanced installer i have chosen limit to basic user interface and did not work, i am still getting the window with "Next".
The dialog with the "Next" button that appears is the "Prerequisites Welcome" dialog and it appears because you added "WinRAR" as a "pre-install" prerequisite, which is installed before the main package. The "Limit to basic user interface" option applies only to the main package.
should i put in the field Silent (No UI) : winrar-x64-500.exe /qn
As I mentioned above, in the "Silent (No UI) field you can only put the command that installs the "WinRAR" application in silent mode (i.e. /s).

Let us know if this worked.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MXM
Posts: 5
Joined: Wed Sep 25, 2013 7:14 am

Re: Winrar+license in one setup, How?

thank you Eusebiu

I will test it today,as i will deploy it to over 1000 user, i will give you feedback.
as for uninstalling winrar through advanced installer, I have found this tutorial that might help: http://www.advancedinstaller.com/user-g ... l-msi.html

what do you think could this help, as far as i understand that we may create a function that runs after finishing uninstalling the advanced installer package, and this function will launch depending on what you want, as for us we choose it to uninstall winrar.

if that's true, what are the values that i should put according to winrar.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Winrar+license in one setup, How?

Hi,

Yes, the solution described in the article that you mentioned could help, but you should consider the fact that if the main package runs in basic or silent mode, then only the actions from the "Install Execution Stage" are executed (from the Custom Actions page). So, if you follow the mentioned article, it will only work if you run your main package with Full UI (at least on uninstall).
what are the values that i should put according to winrar.
To achieve this for "WinRAR" you can go in the Custom Actions page and add a "Launch file" custom action like in the example below:
  • Launch File: [SystemFolder]msiexec.exe
    Command Line: /x GUID /qn
    (where GUID is the Product Code of the "WinRAR" application)
    Working Directory: [SystemFolder]
    Check the "Run As Administrator" option
    (if it is not checked in the Install Parameters page)
    Dialog Stage Condition: check only Uninstall
Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
urie
Posts: 3
Joined: Mon Jul 23, 2012 7:31 pm

Re: Winrar+license in one setup, How?

MXM wrote:Hi

i ma trying to build Winrar+license in one setup, of course the license should be copied to the directory of the winrar after installation, as follow:

C:\Program Files\WinRAR

please how can i build one setup for both of them, i tried but no succeed.

i will use SCCM 2012 SP1 for deploying it.

thank you in advance
There is no need to copy the rarreg.key to winrar folder after installation if rarreg.key is present in same folder as installer it is copied automatically.
MXM
Posts: 5
Joined: Wed Sep 25, 2013 7:14 am

Re: Winrar+license in one setup, How?

hi urie

what do you mean by:

There is no need to copy the rarreg.key to winrar folder after installation if rarreg.key is present in same folder as installer it is copied automatically.
explain more, How?

regards

Return to “Building Installers”