Last post there was a question on how to upgrade From the previous version of PowerTab Jason already answered in the comments.
As I also had this planned as start of this series I explain a bit more, while I’m installing the new current version PowerTab 0.99.5.
To startup the PowerTab V1 installation added this block to the Profile ( Tip use ii $profile to open your profile)
:
################ Start of PowerTab Initialisatie Code ########################
#
# added to Profile by PowerTab Setup For Loading of Custom TabExpansion,
#
# /\/\o\/\/ 2007
#
# http://ThePowerShellGuy.com
#
# Initialize PowerTab
& 'C:\Powertab\Init-TabExpansion.ps1' `
-ConfigurationLocation 'C:\Users\morsouw.WW\Documents\WindowsPowerShell'
################ End of PowerTab Initialisatie Code ##########################
To disable PowerTab V1 we just remark out, to clean up a bit but keep the old version available I changed it like this :
# Old PowerTab
#& 'C:\Powertab\Init-TabExpansion.ps1' `
# -ConfigurationLocation 'C:\Users\morsouw.WW\Documents\WindowsPowerShell'
Then we are ready to install, from here it is the same as the normal installation
I downloaded PowerTab-0.99.5.1.zip from http://powertab.codeplex.com/ and
* Important *
unblocked the ZIP file by right clicking it in Explorer –> properties –> Unblock
and extracted it, in the Zipfile there is a folder named PowerTab that you have to copy in your modules directory *documents\WindowsPowerShell\Modules.
tip you can easy open by using ii ( Split-Path $profile )
After that the installation is as simple as importing the module :
Import-Module powertab
Then the setup wizard will start (in 0.99.5 you can get the error The term 'Parse-Manifest' is not recognized as the name of a cmdlet, function, script file, or operable program, this can safely be ignored and will be fixed in next build) and create configuration file,( the working is described in the Documentation on Codeplex here Creating a Configuration File )
This setup still looks like the old setup and the easies way to configure Powertab is just hit enter till you see :
PowerTab version 0.99.5.1 PowerShell TabExpansion Library
Host: ConsoleHost
PowerTab Enabled: True
And ready !
* Update * It can be that the setup is not updating the profile, as can be seen in the setupinfo, a command like this will be added to the profile :
Import-Module "PowerTab" -ArgumentList "C:\Users\morsouw.WW\Documents\WindowsPowerShell\PowerTabConfig.xml"
For now you have to copy that from the console into your profile by hand, of course in later version the setup will do this
But if you follow the setup information you find out that there is an extra option to store the Powertab config and database in Isolated Storage
Where should the PowerTab configuration file and database be saved?
Any existing PowerTab configuration will be overwritten.
[P] Profile Directory [I] Installation Directory [A] Application Data Directory [S] Isolated Storage
[O] Other Directory[?] Help (default is "P"):
Detail information about the PowerTab configuration you can find here :
http://powertab.codeplex.com/documentation
a good place to start next.
and to see what functions are added by PowerTab V2 type :
Get-Command -Module powertab
Powertab V2 up and running, hence target of this post reached, more about the usage of PowerTab in the next part of this series, till then, when your new to PowerTab, just hit Tab every time you think you might need completion and most of the time it will work ;)
And else take a look at the posts about Posts about PowerTab for PowerShell V1 on my blog, everything there still works (or is improved)
More about what is new in next post
Enjoy,
Greetings MOW